MCPcopy Create free account
hub / github.com/microsoft/AI-Engineering-Coach / buildWorkspacePlan

Function buildWorkspacePlan

src/core/parser.ts:339–348  ·  view source on GitHub ↗

Flatten the work list into the ordered loading-plan keys consumed by the webview grid.

(work: WorkspaceWorkItem[])

Source from the content-addressed store, hash-verified

337
338/** Flatten the work list into the ordered loading-plan keys consumed by the webview grid. */
339function buildWorkspacePlan(work: WorkspaceWorkItem[]): string[] {
340 const planItems: string[] = [];
341 let planOrder = 0;
342 for (const item of work) {
343 for (const tile of item.sessionTiles) {
344 planItems.push(makeWorkspaceProgressKey(item.workspaceKey, item.wsId, planOrder++, tile.date, tile.size));
345 }
346 }
347 return planItems;
348}
349
350async function processWorkspaces(
351 entries: { logsDir: string; dirEntries: fs.Dirent[] }[],

Callers 1

processWorkspacesFunction · 0.85

Calls 1

makeWorkspaceProgressKeyFunction · 0.85

Tested by

no test coverage detected