MCPcopy
hub / github.com/coder/mux / collectFullHistory

Function collectFullHistory

src/node/services/taskService.test.ts:77–84  ·  view source on GitHub ↗
(service: HistoryService, workspaceId: string)

Source from the content-addressed store, hash-verified

75}
76
77async 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
86function findWorkspaceInConfig(config: Config, workspaceId: string) {
87 return Array.from(config.loadConfigOrDefault().projects.values())

Callers 2

Calls 3

iterateFullHistoryMethod · 0.80
pushMethod · 0.65
assertFunction · 0.50

Tested by

no test coverage detected