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

Function backfillObservableInput

src/tools/FileEditTool/FileEditTool.ts:115–121  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

113 return input.file_path
114 },
115 backfillObservableInput(input) {
116 // hooks.mdx documents file_path as absolute; expand so hook allowlists
117 // can't be bypassed via ~ or relative paths.
118 if (typeof input.file_path === 'string') {
119 input.file_path = expandPath(input.file_path)
120 }
121 },
122 async preparePermissionMatcher({ file_path }) {
123 return pattern => matchWildcardPattern(pattern, file_path)
124 },

Callers

nothing calls this directly

Calls 1

expandPathFunction · 0.85

Tested by

no test coverage detected