()
| 1114 | } |
| 1115 | |
| 1116 | list(): Array<[string, ProjectConfig]> { |
| 1117 | try { |
| 1118 | const config = this.config.loadConfigOrDefault(); |
| 1119 | return Array.from(deriveProjectHierarchy(config.projects).entries()); |
| 1120 | } catch (error) { |
| 1121 | log.error("Failed to list projects:", error); |
| 1122 | return []; |
| 1123 | } |
| 1124 | } |
| 1125 | |
| 1126 | async listBranches(projectPath: string): Promise<BranchListResult> { |
| 1127 | if (typeof projectPath !== "string" || projectPath.trim().length === 0) { |