tessl install tessl/npm-cronstrue@3.2.0Convert 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%
{
"context": "This criteria evaluates how well the engineer uses the cronstrue package to convert cron expressions with range syntax into human-readable descriptions. The focus is on proper use of cronstrue's toString function and understanding how it handles hyphen-based ranges in cron expressions.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import cronstrue",
"description": "The solution correctly imports or requires the cronstrue package using require('cronstrue') or similar import syntax",
"max_score": 10
},
{
"name": "Use toString function",
"description": "The solution uses cronstrue.toString() function to convert cron expressions to human-readable descriptions",
"max_score": 30
},
{
"name": "Handle range validation",
"description": "The hasRanges function properly validates expressions by checking for hyphen character in the cron expression string or by attempting to parse with cronstrue and checking for errors",
"max_score": 20
},
{
"name": "Pass expressions correctly",
"description": "Cron expressions are passed to cronstrue.toString() as strings without modification, allowing cronstrue to natively parse range syntax like '9-17', 'MON-FRI', 'JAN-MAR'",
"max_score": 25
},
{
"name": "Return descriptions",
"description": "The describeSchedule function returns the string output from cronstrue.toString() as the human-readable description",
"max_score": 15
}
]
}