()
| 149 | ]); |
| 150 | |
| 151 | const newCorrelationId = (): string => { |
| 152 | // 8-hex-char correlation id; enough entropy to disambiguate within a |
| 153 | // single deployment without leaking host process info. |
| 154 | return Math.floor(Math.random() * 0x1_0000_0000) |
| 155 | .toString(16) |
| 156 | .padStart(8, "0"); |
| 157 | }; |
| 158 | |
| 159 | const validationIssues = (value: unknown): readonly unknown[] | null => { |
| 160 | if (typeof value !== "object" || value === null) return null; |
no test coverage detected