tessl install tessl/npm-ulid@3.0.0A universally-unique, lexicographically-sortable, identifier generator
Agent Success
Agent success rate when using this tile
78%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.34x
Baseline
Agent success rate without this tile
58%
{
"context": "This criteria evaluates how well the engineer uses the ulid package's monotonicFactory function to create an ordered ID generator that maintains strict lexicographic ordering, even when multiple IDs are generated within the same millisecond.",
"type": "weighted_checklist",
"checklist": [
{
"name": "monotonicFactory usage",
"description": "Uses the monotonicFactory() function from the ulid package to create the ID generator",
"max_score": 40
},
{
"name": "Factory return",
"description": "Returns the factory function created by monotonicFactory() from createOrderedIdGenerator(), not wrapping it unnecessarily",
"max_score": 20
},
{
"name": "Timestamp parameter",
"description": "Correctly passes the optional timestamp parameter from IdGenerator to the factory function returned by monotonicFactory()",
"max_score": 20
},
{
"name": "Import statement",
"description": "Imports monotonicFactory from the 'ulid' package correctly",
"max_score": 10
},
{
"name": "Type definitions",
"description": "Exports the IdGenerator type as specified in the API, defining it as (timestamp?: number) => string",
"max_score": 10
}
]
}