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.
TypeScript ai-artartificial-intelligencegenerative-artimage-generationimg2imginpaintinglatent-diffusionlinuxmacosoutpaintingstable-diffusiontxt2imgwindows
import type { WidgetContributionSource } from '@workbench/widgetContracts';
/** Includes widget source identity; the tuple is mirrored here to keep the palette's lazy boundary. */
export const getPaletteContributionKey = (
kind: 'command' | 'provider' | 'provider-error' | 'provider-result' | 'provider-row' | 'scope' | 'scope-command',
id: string,
source?: WidgetContributionSource | null
): string =>
JSON.stringify([
'palette',
kind,
id,
source ? ['widget', source.projectId, source.region, source.typeId, source.instanceId] : 'global',
]);