(input)
| 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 | }, |
nothing calls this directly
no test coverage detected