// ── Public API version / identity ──────────────────────────────────────────
//
// A tiny, dependency-free descriptor of this backend, surfaced on GET
// /public/status and GET /public/version. A client (notably the Android app)
// uses it to:
//   • positively recognize a Runic Gateway backend on first-run (the `service`
//     tag), instead of guessing from an incidental response shape; and
//   • run a version-mismatch guard — compare `api` against the contract the
//     client was built against and surface a clear "update required" state
//     rather than mis-parsing a future, changed response.
//
// `api` is the coarse contract version (bumped only on a breaking re-shape, which
// would be a v2 mount); `server` is the informational package version.

const pkg = require('../../package.json')

module.exports = {
  service: 'runic-gateway', // stable backend identifier for first-run detection
  api: 'v1', // API contract version (matches the /api/v1 mount)
  server: pkg.version || '0.0.0', // server package version (informational)
}
