Function optimizedSetFromIndex

  • Builds the set of ${modelId}/${format} pairs that have an optimized variant, from a parsed models index.json. Each model entry may carry optimized: string[] — the format keys whose model.optimized.{ext} exists.

    Parameters

    • index: Record<string, { optimized?: string[] }>

    Returns Set<string>