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%
Build a function that generates sequential, ordered identifiers for a high-frequency event logging system. The identifiers must maintain strict lexicographic ordering even when multiple events occur within the same millisecond.
Your implementation must:
@generates
/**
* Creates an ordered ID generator
* @returns A generator function that produces ordered IDs
*/
export function createOrderedIdGenerator(): IdGenerator;
/**
* ID generator function type
* @param timestamp - Optional timestamp in milliseconds (default: current time)
* @returns A unique, ordered identifier string
*/
export type IdGenerator = (timestamp?: number) => string;Provides identifier generation with sortable properties.
@satisfied-by