MCPcopy Index your code
hub / github.com/simstudioai/sim / getOrMaterializeVFS

Function getOrMaterializeVFS

apps/sim/lib/copilot/vfs/workspace-vfs.ts:2284–2292  ·  view source on GitHub ↗
(
  workspaceId: string,
  userId: string
)

Source from the content-addressed store, hash-verified

2282 * Static component files (blocks, integrations) are cached per-process.
2283 */
2284export 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
2294export type { FileReadResult } from '@/lib/copilot/vfs/file-reader'
2295

Callers 3

executeVfsGrepFunction · 0.90
executeVfsGlobFunction · 0.90
executeVfsReadFunction · 0.90

Calls 2

materializeMethod · 0.95

Tested by

no test coverage detected