(projectPath: string, fallback: string)
| 57 | } |
| 58 | |
| 59 | function projectNameFromPath(projectPath: string, fallback: string): string { |
| 60 | const normalized = projectPath.trim().replace(/\\/g, '/').replace(/\/+$/, '') |
| 61 | return normalized.split('/').filter(Boolean).pop() ?? fallback |
| 62 | } |
| 63 | |
| 64 | |
| 65 | // Returns true for sessions whose canonical project key must NOT be derived |
no outgoing calls
no test coverage detected