MCPcopy Create free account
hub / github.com/simstudioai/sim / registerLazy

Method registerLazy

apps/sim/lib/copilot/vfs/workspace-vfs.ts:407–409  ·  view source on GitHub ↗

Register a VFS path whose (expensive) content is produced on demand.

(path: string, loader: () => Promise<string | null>)

Source from the content-addressed store, hash-verified

405
406 /** Register a VFS path whose (expensive) content is produced on demand. */
407 private registerLazy(path: string, loader: () => Promise<string | null>): void {
408 this.lazy.set(path, loader)
409 }
410
411 /**
412 * Load a workflow's normalized state once per instance. state.json and lint.json

Callers 3

materializeWorkflowsMethod · 0.95
materializeJobsMethod · 0.95

Calls 1

setMethod · 0.65

Tested by

no test coverage detected