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

// Matrix intake — fuzzy investor matching. GET /api/intake/match now returns, alongside the
// exact `match`, a ranked list of `candidates`: fuzzy near-matches (deterministic difflib name
// similarity + token overlap + email edit-distance ≤ 2, legal-suffix-aware) the intake bot can
// surface in-thread for the human to pick from — so a near-duplicate name ("Charlie"/"Charles",
// "Acme Capital"/"Acme Capital LLC", a one-char email typo) no longer silently creates a second
// investor. Server-side only (the bot's disambiguation + conversational-edit UX ships on the
// Spark, not in the s9pk). Code-only, no schema change.
export const v_0_1_0_86 = VersionInfo.of({
  version: '0.1.0:86',
  releaseNotes: {
    en_US: [
      'Matrix intake: the new-vs-existing lookup now also returns ranked fuzzy near-matches,',
      'so a typo’d or near-duplicate investor name is surfaced for confirmation instead of',
      'silently creating a duplicate. No data changes.',
    ].join(' '),
  },
  migrations: { up: async () => {}, down: async () => {} },
})
