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

/**
 * v1.0.0:3 — post-cutover seed strip.
 *
 * v1.0.0:1 baked a one-time snapshot of the maintainer's live `/data`
 * volume into the image so the cutover from the legacy `workout-log`
 * package would preserve every workout/exercise/preference. v1.0.0:2
 * fixed an unrelated CSP bug. With the cutover verified done, this
 * release strips the baked seed:
 *
 *   - Dockerfile: removes `COPY start9/0.4/seed/data /app/seed/data`
 *     and the `WORKOUT_BAKED_SEED_DB_PATH` env var.
 *   - docker_entrypoint.sh: drops the baked-seed branch. The
 *     empty-schema fallback branch (used only on brand-new sideloads
 *     with no existing /data) stays. Existing installs always have
 *     /data/app.db so neither branch ever fires for them.
 *
 * The baked seed itself stays on disk under start9/0.4/seed/data/ as
 * a historical artifact (gitignored, never committed). If you ever
 * need to spin up a new instance with pre-loaded history, reintroduce
 * the COPY in the Dockerfile and rebuild — the entrypoint logic will
 * pick the right branch.
 *
 * No schema changes, no data migration. /data on existing installs is
 * left exactly as-is. Image size drops by ~1.7 MB (the snapshot size).
 */
export const v_1_0_0_3 = VersionInfo.of({
  version: '1.0.0:3',
  releaseNotes: {
    en_US:
      'Post-cutover cleanup: removes the one-time `/data` seed snapshot from the Docker image. The cutover from the legacy `workout-log` package is verified done; the snapshot is no longer needed in the image and removing it eliminates any chance of a future bug overwriting live `/data`. No data migration; existing installs are untouched.',
  },
  migrations: {
    up: async () => {},
    down: IMPOSSIBLE,
  },
})
