MCPcopy Index your code
hub / github.com/codeaashu/claude-code / backfillObservableInput

Function backfillObservableInput

src/tools/FileReadTool/FileReadTool.ts:388–394  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

386 return file_path || getCwd()
387 },
388 backfillObservableInput(input) {
389 // hooks.mdx documents file_path as absolute; expand so hook allowlists
390 // can't be bypassed via ~ or relative paths.
391 if (typeof input.file_path === 'string') {
392 input.file_path = expandPath(input.file_path)
393 }
394 },
395 async preparePermissionMatcher({ file_path }) {
396 return pattern => matchWildcardPattern(pattern, file_path)
397 },

Callers

nothing calls this directly

Calls 1

expandPathFunction · 0.85

Tested by

no test coverage detected