createQueryExecutor = (manager) => {
  /** @type {import('@home-gallery/types').TQueryPlugin[]} */
  const queryPlugins = manager.getExtensions().filter(e => e.type == 'query').map(e => e.extension);
  const queryExecutor = new QueryExecutor()
  queryExecutor.addQueryPlugins(queryPlugins);
  return (entries, query, context) => queryExecutor.execute(entries, query, context)
}
@param {import('@home-gallery/types').TPluginManager} manager
@returns {import('./types.js').TExecuteQueryFn}