()
| 136 | } |
| 137 | |
| 138 | private async loadProfiles(): Promise<{ |
| 139 | profiles: ProfileLifecycleManager[]; |
| 140 | errors?: ConfigValidationError[]; |
| 141 | }> { |
| 142 | const errors: ConfigValidationError[] = []; |
| 143 | try { |
| 144 | const profiles = await this.getLocalProfiles({ |
| 145 | includeGlobal: true, |
| 146 | includeWorkspace: true, |
| 147 | }); |
| 148 | return { profiles }; |
| 149 | } catch (e) { |
| 150 | errors.push({ |
| 151 | fatal: true, |
| 152 | message: `Error loading local assistants${e instanceof Error ? ":\n" + e.message : ""}`, |
| 153 | }); |
| 154 | return { |
| 155 | profiles: [], |
| 156 | errors, |
| 157 | }; |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | async getLocalProfiles(options: LoadAssistantFilesOptions) { |
| 162 | /** |
no test coverage detected