| 1349 | } |
| 1350 | |
| 1351 | async debugVersions(): Promise<DebugVersion[]> { |
| 1352 | // Build list of versions. |
| 1353 | return Array.from(this.versions.keys()).map((hash) => { |
| 1354 | const version = this.versions.get(hash)!; |
| 1355 | const clients = Array.from(this.clientVersionMap.entries()) |
| 1356 | .filter(([clientId, version]) => version === hash) |
| 1357 | .map(([clientId, version]) => clientId); |
| 1358 | return { |
| 1359 | hash, |
| 1360 | manifest: version.manifest, |
| 1361 | clients, |
| 1362 | status: '', |
| 1363 | }; |
| 1364 | }); |
| 1365 | } |
| 1366 | |
| 1367 | async debugIdleState(): Promise<DebugIdleState> { |
| 1368 | return { |