( defaults: Partial<SessionDefaults>, cwd: string, )
| 138 | } |
| 139 | |
| 140 | function resolveRelativeSessionPaths( |
| 141 | defaults: Partial<SessionDefaults>, |
| 142 | cwd: string, |
| 143 | ): Partial<SessionDefaults> { |
| 144 | const resolved: Partial<SessionDefaults> = { ...defaults }; |
| 145 | const pathKeys = ['projectPath', 'workspacePath', 'derivedDataPath'] as const; |
| 146 | |
| 147 | for (const key of pathKeys) { |
| 148 | const value = resolved[key]; |
| 149 | if (typeof value === 'string' && value.length > 0) { |
| 150 | resolved[key] = normalizePathValue(value, cwd); |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | return resolved; |
| 155 | } |
| 156 | |
| 157 | function normalizeEnabledWorkflows(value: unknown): string[] { |
| 158 | if (value == null) return []; |
no test coverage detected