Skip to content

Invoke is a leading creative engine that uses image and video generation models to empower professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry-leading application interface, and serves as the foundation for multiple commercial products.

456 B
Raw Blame
import type { PaletteProviderQuery, PaletteSearchProvider } from './entries';

/** Keyed on stripped text plus the resolved date range, so relative tokens cannot hit a stale entry. */
export const getPaletteProviderQueryKey = (provider: PaletteSearchProvider, query: PaletteProviderQuery) =>
  [
    'command-palette',
    provider.providerKey,
    provider.contextKey,
    query.text,
    query.range?.from ?? '',
    query.range?.to ?? '',
  ] as const;