(service: HistoryService, workspaceId: string)
| 75 | } |
| 76 | |
| 77 | async function collectFullHistory(service: HistoryService, workspaceId: string) { |
| 78 | const messages: MuxMessage[] = []; |
| 79 | const result = await service.iterateFullHistory(workspaceId, "forward", (chunk) => { |
| 80 | messages.push(...chunk); |
| 81 | }); |
| 82 | assert(result.success, `collectFullHistory failed: ${result.success ? "" : result.error}`); |
| 83 | return messages; |
| 84 | } |
| 85 | |
| 86 | function findWorkspaceInConfig(config: Config, workspaceId: string) { |
| 87 | return Array.from(config.loadConfigOrDefault().projects.values()) |
no test coverage detected