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

// NL-query correctness fix (W2). The comms_by_user and email_counts_by_user intents counted /
// listed a user's ENTIRE captured sent corpus (internal / vendor / personal mail), not only
// email to a matched investor — they were missing the `EXISTS email_investor_links` gate that
// recent_emails and the Communications panel's query_email_activity already use. Added the
// matched-only gate to both (mirroring query_email_activity), so "emails sent by <user>" and
// "how many emails did <user> send" answer about investor relationships only. No schema change,
// no UI change — up/down are no-ops.
export const v_0_1_0_94 = VersionInfo.of({
  version: '0.1.0:94',
  releaseNotes: {
    en_US: [
      'Natural-language query fix: "emails sent by <user>" and per-user email counts now count',
      'only email to matched investors (not internal/vendor/personal mail), matching the',
      'Communications panel.',
    ].join(' '),
  },
  migrations: { up: async () => {}, down: async () => {} },
})
