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

Method read

apps/sim/lib/copilot/vfs/workspace-vfs.ts:712–719  ·  view source on GitHub ↗
(path: string, offset?: number, limit?: number)

Source from the content-addressed store, hash-verified

710 }
711
712 async read(path: string, offset?: number, limit?: number): Promise<ReadResult | null> {
713 // Resolve the one lazy artifact being read into `files`; a no-op for eager
714 // paths (already present) and unknown paths (no loader). Lazy keys are always
715 // ASCII (built via encodeURIComponent), so no Unicode-normalized lookup is
716 // needed here; ops.read still does its own NFC/NFD fallback over `files`.
717 await this.resolveLazyPath(path)
718 return ops.read(this.files, path, offset, limit)
719 }
720
721 suggestSimilar(missingPath: string, max?: number): string[] {
722 return ops.suggestSimilar(this.keyView(true), missingPath, max)

Callers 8

readBodyAsBufferFunction · 0.45
readSSELinesFunction · 0.45
readSSEStreamFunction · 0.45
executeVfsReadFunction · 0.45
drainStreamFunction · 0.45
processSSEStreamFunction · 0.45
readFunction · 0.45

Calls 1

resolveLazyPathMethod · 0.95

Tested by 1

drainStreamFunction · 0.36