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

Method grep

apps/sim/lib/copilot/vfs/workspace-vfs.ts:644–653  ·  view source on GitHub ↗
(
    pattern: string,
    path?: string,
    options?: GrepOptions
  )

Source from the content-addressed store, hash-verified

642 }
643
644 async grep(
645 pattern: string,
646 path?: string,
647 options?: GrepOptions
648 ): Promise<GrepMatch[] | string[] | ops.GrepCountEntry[]> {
649 // grep is the only op that scans contents, so it is the only op that pays to
650 // materialize lazy artifacts — and only those within its scope.
651 await this.resolveLazyWithinScope(path)
652 return ops.grep(this.filesForPath(path), pattern, path, options)
653 }
654
655 /**
656 * Grep the *content* of a single workspace file (under `files/`), as opposed to

Callers 1

executeVfsGrepFunction · 0.80

Calls 2

filesForPathMethod · 0.95

Tested by

no test coverage detected