File size: 343 Bytes
dd480ef
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
/**
 * ID Generation Utility
 */
export function generateJobId(): string {
  const timestamp = Date.now().toString(36);
  const random = Math.random().toString(36).slice(2, 8);
  return `wf_${timestamp}_${random}`;
}

export function generateNodeId(prefix = 'node'): string {
  return `${prefix}_${Math.random().toString(36).slice(2, 10)}`;
}