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

// Matrix intake bot — CRM server-side support. Code-only, no schema change (migrations no-ops).
// These shipped in source with the intake bot (commit 7ad0ee7) but were never packaged; the bot
// (a separate process on the Spark) depends on them being live on the box:
//   * GET /api/intake/match — read-only new-vs-existing lookup against the canonical fundraising
//     grid blob; returns the grid row id so an approved note lands on the matched investor
//     (no duplicate). The bot calls this to label its in-thread proposal new-vs-existing.
//   * source provenance on POST /api/fundraising/log-communication — the audit entry now records
//     a `source` (e.g. "matrix_intake"); defaults to "fundraising_grid", so existing callers
//     (the grid UI) are unchanged.
export const v_0_1_0_84 = VersionInfo.of({
  version: '0.1.0:84',
  releaseNotes: {
    en_US: [
      'Matrix intake bot server support: a read-only investor-match endpoint so the bot can',
      'recognize existing investors (no duplicates), plus write-provenance in the audit log.',
      'No data changes.',
    ].join(' '),
  },
  migrations: { up: async () => {}, down: async () => {} },
})
