import { VersionGraph } from '@start9labs/start-sdk'
import { v_1_0_0_1 } from './v1.0.0.1'
import { v_1_0_0_2 } from './v1.0.0.2'

/**
 * Version graph for the `proof-of-work` package.
 *
 * v1.0.0:1 — initial release, seeded cutover from the legacy
 *            `workout-log` package.
 * v1.0.0:2 — CSP fix (reverts the over-strict nonce-based CSP that
 *            broke first paint in v1.0.0:1).
 *
 * StartOS picks `current` as the install target; `other` lists every
 * node that can upgrade into `current`. Hosts on v1.0.0:1 upgrade to
 * v1.0.0:2 via the no-op up migration; fresh installs land directly
 * on v1.0.0:2.
 */
export const versionGraph = VersionGraph.of({
  current: v_1_0_0_2,
  other: [v_1_0_0_1],
})
