CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/npm-cronstrue

tessl install tessl/npm-cronstrue@3.2.0

Convert cron expressions into human readable descriptions

Agent Success

Agent success rate when using this tile

100%

Improvement

Agent success rate improvement when using this tile compared to baseline

1.12x

Baseline

Agent success rate without this tile

89%

rubric.jsonevals/scenario-1/

{
  "context": "This criteria evaluates how effectively the engineer uses the cronstrue package to leverage its built-in validation capabilities and error handling to build a cron expression validator. The focus is on utilizing cronstrue's range validation and error messaging features rather than implementing custom validation logic.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses cronstrue.toString",
      "description": "Calls the cronstrue.toString() function to parse and validate cron expressions rather than implementing custom parsing or validation logic",
      "max_score": 30
    },
    {
      "name": "Error handling",
      "description": "Uses try-catch blocks or the throwExceptionOnParseError option to capture validation errors thrown by cronstrue when expressions contain out-of-range values",
      "max_score": 25
    },
    {
      "name": "Returns validation result",
      "description": "Returns a properly structured result object with isValid, errorMessage (when invalid), and description (when valid) fields that leverage cronstrue's output",
      "max_score": 20
    },
    {
      "name": "Extracts error messages",
      "description": "Captures and returns the helpful error messages generated by cronstrue's validation system (from Error objects) rather than creating custom error messages",
      "max_score": 15
    },
    {
      "name": "Gets human descriptions",
      "description": "Uses the human-readable description returned by cronstrue.toString() as the description field when the expression is valid",
      "max_score": 10
    }
  ]
}

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
npmpkg:npm/cronstrue@3.2.x
tile.json