/** * The React Query key for a provider's file tree. * * Shared so every consumer observes the *same* cache entry: the sidebar and * the wikilink index both read it, and React Query then dedupes the recursive * `getTree()` walk into a single fetch rather than one per observer. A copy of * this key that drifted by even a character would silently double the IPC. */ export function treeQueryKey(providerId: string) { return ['tree', providerId] as const; }