MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / normalizeVaultTextSearchToolPaths

Function normalizeVaultTextSearchToolPaths

apps/desktop/src/main/vault.ts:1670–1677  ·  view source on GitHub ↗
(
  paths: VaultTextSearchToolPaths | null | undefined
)

Source from the content-addressed store, hash-verified

1668}
1669
1670function normalizeVaultTextSearchToolPaths(
1671 paths: VaultTextSearchToolPaths | null | undefined
1672): Required<VaultTextSearchToolPaths> {
1673 return {
1674 ripgrepPath: normalizeToolPath(paths?.ripgrepPath),
1675 fzfPath: normalizeToolPath(paths?.fzfPath)
1676 }
1677}
1678
1679function capabilityCacheKey(paths: Required<VaultTextSearchToolPaths>): string {
1680 return JSON.stringify(paths)

Callers 2

searchVaultTextFunction · 0.85

Calls 1

normalizeToolPathFunction · 0.85

Tested by

no test coverage detected