MCPcopy Create free account
hub / github.com/Noumena-Network/code / getPath

Function getPath

src/tools/GrepTool/GrepTool.ts:216–218  ·  view source on GitHub ↗
({ path })

Source from the content-addressed store, hash-verified

214 return { isSearch: true, isRead: false }
215 },
216 getPath({ path }): string {
217 return path || getCwd()
218 },
219 async preparePermissionMatcher({ pattern }) {
220 return rulePattern => matchWildcardPattern(rulePattern, pattern)
221 },

Callers

nothing calls this directly

Calls 1

getCwdFunction · 0.85

Tested by

no test coverage detected