(id: string)
| 26 | const VALID_TASK_ID = /^[a-z0-9]+(?:-[a-z0-9]+)*-[0-9a-z]{8}$/; |
| 27 | |
| 28 | export function isSafeTaskId(id: string): boolean { |
| 29 | return VALID_TASK_ID.test(id); |
| 30 | } |
| 31 | |
| 32 | function tasksDirOf(agentDir: string): string { |
| 33 | return join(agentDir, 'tasks'); |
no outgoing calls
no test coverage detected