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

export const v_0_2_73 = VersionInfo.of({
  version: '0.2.73:0',
  releaseNotes: {
    en_US:
      'Defensive unwrap of the relay SSE "done" event so the title fix actually works against pre-0.2.60 relays too. Backstory: relay 0.2.60 finally fixes the real root cause of the "Untitled" library bug — markComplete was double-nesting the SSE done event so `data.result.title` was undefined and the actual title lived at `data.result.result.title`. This Recap release detects BOTH shapes: if the incoming SSE event has `data.result.result` with one of the expected inner keys (transcript / analysis / title), Recap unwraps once. Otherwise it uses `data.result` as-is (the new flat shape from relay 0.2.60+). Backwards-compatible with any relay version. Net effect: a Recap install upgraded to this version reads titles correctly regardless of which relay version is running on the operator side.',
  },
  migrations: {
    up: async ({ effects }) => {},
    down: async ({ effects }) => {},
  },
})
