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%
Build a meeting scheduler that converts recurring meeting schedules into human-readable descriptions.
Your task is to create a utility that takes cron-style scheduling expressions and returns user-friendly descriptions. The system must support schedules that specify the Nth occurrence of a weekday within a month (e.g., "third Monday", "second Sunday").
Implement a function that:
The scheduling expressions follow a cron-like format with these fields:
The system must handle the special "Nth occurrence" syntax for day of week:
DAY#N where DAY is 0-6 and N is 1-51#3 means "third Monday of the month"0#2 means "second Sunday of the month"Create a test file scheduler.test.js with the following test cases:
Third Monday meeting @test
"30 14 * * 1#3"Second Sunday meeting @test
"0 10 * * 0#2"First Friday meeting @test
"0 9 * * 5#1"@generates
/**
* Converts a scheduling expression into a human-readable description
* @param {string} expression - The cron-style scheduling expression
* @returns {string} A human-readable description of the schedule
*/
function describeSchedule(expression) {
// Implementation here
}
module.exports = { describeSchedule };Provides cron expression parsing and human-readable conversion support.