( workspaceId: string, userId: string )
| 545 | * when the workspace is unavailable. |
| 546 | */ |
| 547 | export async function generateWorkspaceSnapshot( |
| 548 | workspaceId: string, |
| 549 | userId: string |
| 550 | ): Promise<{ markdown: string; snapshot: VfsSnapshotV1 } | null> { |
| 551 | const data = await buildWorkspaceMdData(workspaceId, userId) |
| 552 | if (!data) return null |
| 553 | return { markdown: buildWorkspaceMd(data), snapshot: buildVfsSnapshot(data) } |
| 554 | } |
| 555 | |
| 556 | /** |
| 557 | * Map the workspace inventory data to the typed VFS snapshot contract. Pure; |
no test coverage detected