(artifact: DaemonArtifact, req: DaemonRequest)
| 324 | } |
| 325 | |
| 326 | function resolveMaterializedArtifactPath(artifact: DaemonArtifact, req: DaemonRequest): string { |
| 327 | if (artifact.localPath && artifact.localPath.trim().length > 0) { |
| 328 | return artifact.localPath; |
| 329 | } |
| 330 | const requestedPath = req.meta?.clientArtifactPaths?.[artifact.field]; |
| 331 | if (requestedPath && requestedPath.trim().length > 0) { |
| 332 | return requestedPath; |
| 333 | } |
| 334 | const fallbackName = artifact.fileName?.trim() || `${artifact.field}-${Date.now()}`; |
| 335 | return path.resolve(req.meta?.cwd ?? process.cwd(), fallbackName); |
| 336 | } |
| 337 | |
| 338 | type DownloadRemoteArtifactParams = { |
| 339 | baseUrl: string; |
no outgoing calls
no test coverage detected
searching dependent graphs…