import { VersionInfo } from '@start9labs/start-sdk'

export const v_0_2_70 = VersionInfo.of({
  version: '0.2.70:0',
  releaseNotes: {
    en_US:
      'Library entries now carry the real video / podcast title for relay-mode submissions instead of falling back to "Untitled". Root cause: when both transcribe-provider and analyze-provider are set to "Recap Relay", Recap takes a fast-path branch (server/index.js ~line 2118) that delegates the whole pipeline to the relay\'s /relay/summarize-url endpoint — meaning Recap itself never runs yt-dlp to fetch YouTube metadata, never invokes the podcast resolver, and so has no title to save with the history record. The relay DID extract the title internally (via yt-dlp during the download step) but didn\'t echo it back. Fix is split across the two packages: relay 0.2.53 adds `title` to the markComplete result envelope; this Recap release reads `relayResult.title` from the provider client return value (server/providers/relay.js), trims it, and uses it for the saveToHistory call AND the transcript_ready + result SSE events the browser consumes. Net effect: paste a YouTube URL with both providers set to relay, see "Sovereignty & Purpose in the Information Era w/ Matt Hill" (or whatever the actual YouTube title is) in the library sidebar — not "Untitled". Backwards compatible with older relays: when finalResult.title is null (relay < 0.2.53), the old titleSurrogate fallback path still applies.',
  },
  migrations: {
    up: async ({ effects }) => {},
    down: async ({ effects }) => {},
  },
})
