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

Function backfillObservableInput

src/tools/FileWriteTool/FileWriteTool.ts:125–131  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

123 return input.file_path
124 },
125 backfillObservableInput(input) {
126 // hooks.mdx documents file_path as absolute; expand so hook allowlists
127 // can't be bypassed via ~ or relative paths.
128 if (typeof input.file_path === 'string') {
129 input.file_path = expandPath(input.file_path)
130 }
131 },
132 async preparePermissionMatcher({ file_path }) {
133 return pattern => matchWildcardPattern(pattern, file_path)
134 },

Callers

nothing calls this directly

Calls 1

expandPathFunction · 0.85

Tested by

no test coverage detected