( workspaceId: string, userId: string )
| 2282 | * Static component files (blocks, integrations) are cached per-process. |
| 2283 | */ |
| 2284 | export async function getOrMaterializeVFS( |
| 2285 | workspaceId: string, |
| 2286 | userId: string |
| 2287 | ): Promise<WorkspaceVFS> { |
| 2288 | await assertActiveWorkspaceAccess(workspaceId, userId) |
| 2289 | const vfs = new WorkspaceVFS() |
| 2290 | await vfs.materialize(workspaceId, userId) |
| 2291 | return vfs |
| 2292 | } |
| 2293 | |
| 2294 | export type { FileReadResult } from '@/lib/copilot/vfs/file-reader' |
| 2295 |
no test coverage detected