/** * `hiai-docs snapshot ` — create a named, immutable snapshot of * the document's current state. * * Snapshots are stored as `versions` rows with `isSnapshot=true` * (see backend/src/api/routes/versions.ts). They survive the * auto-prune that keeps ordinary auto-saved versions bounded. */ import type { Command } from "commander"; import { client, type HiaiDocsClient } from "../client.js"; import { formatError, green } from "../format.js"; export function registerSnapshot(program: Command, _getClient: () => HiaiDocsClient) { program .command("snapshot ") .description("Create a named snapshot of a document") .requiredOption("-n, --name