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

// Natural-language query (W2) — read-only "ask the database in plain English". A curated,
// parameterized query catalog (backend/nl_query/) sits behind a strict slot validator that is
// the trust boundary: a caller (or the local model) supplies only typed slot VALUES, never a
// table/column, an operator, or SQL. A local-Qwen translator maps a question -> {intent, slots}
// via Spark Control, so the question never leaves the box (no Claude, no redaction); results
// never go back to any model. New endpoints POST /api/query/nl + GET /api/query/catalog
// (require_bot_or_admin, audited as entity_type='nl_query'). No schema change — read-only — so
// up/down are no-ops. The Matrix Q&A client (a dedicated room + the ?/@bot trigger) ships
// separately on the Spark, not in this s9pk.
export const v_0_1_0_93 = VersionInfo.of({
  version: '0.1.0:93',
  releaseNotes: {
    en_US: [
      'Natural-language query (read-only): ask the fundraising database in plain English from',
      'the Matrix Q&A room — translated on-box by the local model (nothing leaves the box),',
      'answering only curated, parameterized queries.',
    ].join(' '),
  },
  migrations: { up: async () => {}, down: async () => {} },
})
