(projectPath: string, projects?: ProjectRef[])
| 80 | } |
| 81 | |
| 82 | function getPrimaryProjectName(projectPath: string, projects?: ProjectRef[]): string { |
| 83 | const matchingProjectName = projects |
| 84 | ?.find((project) => project.projectPath.trim() === projectPath.trim()) |
| 85 | ?.projectName?.trim(); |
| 86 | return matchingProjectName && matchingProjectName.length > 0 |
| 87 | ? matchingProjectName |
| 88 | : PlatformPaths.getProjectName(projectPath).trim(); |
| 89 | } |
| 90 | |
| 91 | function createAgentDiscoveryContext( |
| 92 | entry: ReturnType<typeof findWorkspaceEntry> |
no test coverage detected