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 evaluation assesses how effectively the engineer uses the cronstrue library to handle special time nicknames (@yearly, @monthly, @weekly, @daily, @hourly, @reboot and their alternatives). The focus is on proper API usage and correct implementation of the library's toString function with these special expressions.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses cronstrue library",
"description": "Implementation imports and uses the cronstrue library (via require or import) rather than implementing cron parsing from scratch",
"max_score": 15
},
{
"name": "Uses toString function",
"description": "Implementation correctly uses cronstrue.toString() function to convert cron expressions to human-readable descriptions",
"max_score": 20
},
{
"name": "Handles @yearly/@annually",
"description": "Implementation correctly processes @yearly and @annually nicknames using cronstrue, returning the expected description 'At 12:00 AM, on day 1 of the month, only in January'",
"max_score": 10
},
{
"name": "Handles @monthly",
"description": "Implementation correctly processes @monthly nickname using cronstrue, returning the expected description 'At 12:00 AM, on day 1 of the month'",
"max_score": 8
},
{
"name": "Handles @weekly",
"description": "Implementation correctly processes @weekly nickname using cronstrue, returning the expected description 'At 12:00 AM, only on Sunday'",
"max_score": 8
},
{
"name": "Handles @daily/@midnight",
"description": "Implementation correctly processes @daily and @midnight nicknames using cronstrue, returning the expected description 'At 12:00 AM'",
"max_score": 8
},
{
"name": "Handles @hourly",
"description": "Implementation correctly processes @hourly nickname using cronstrue, returning the expected description 'Every hour'",
"max_score": 8
},
{
"name": "Handles @reboot",
"description": "Implementation correctly processes @reboot nickname using cronstrue, returning the expected description 'Run once, at startup'",
"max_score": 8
},
{
"name": "Error handling",
"description": "Implementation properly handles errors from cronstrue.toString() for invalid expressions, either by letting exceptions propagate or catching and re-throwing appropriately",
"max_score": 15
}
]
}