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

// Email search/query + windowed digest preview. Code-only, no schema change (migrations no-ops):
//   * Communications tab: fixed the investor dropdown (was empty whenever email matched a
//     classic contact / org domain rather than a grid investor) — the facet now mirrors the
//     list with typed keys (fund:/org:/contact:); added a date-range filter and a click-to-
//     expand full-body view (GET /api/email/detail), and a semantic "Search content" mode over
//     indexed email bodies (GET /api/email/search -> ingest hybrid_search, soft-delete-filtered).
//   * Daily digest: Settings -> Admin now builds a digest over a chosen window (last 24h or
//     since a date) as an in-app preview before sending (POST /api/admin/digest/preview), and
//     the manual send uses the same window. Exercises the real local-Spark summarizer; neither
//     touches the daily schedule cursor.
export const v_0_1_0_83 = VersionInfo.of({
  version: '0.1.0:83',
  releaseNotes: {
    en_US: [
      'Communications: the investor dropdown now lists every matched relationship (not just',
      'grid investors), plus a date-range filter, a full-body view, and a semantic content',
      'search over email bodies. Daily Digest: preview a digest over any window before sending.',
      'No data changes.',
    ].join(' '),
  },
  migrations: { up: async () => {}, down: async () => {} },
})
