// Stamp builders shared by the publish tests (stamps, stages). import type { BuiltStamp, IndexStamp } from "../stamps"; export function indexStamp(over: Partial = {}): IndexStamp { return { v: 1, stampId: "s1", generation: 7, scannedAt: 1_000, builtAt: 2_000, templatesAt: 1_900, commit: "abc", index: { shortCircuited: false, added: 1, changed: 2, removed: 0, heldChannels: [] }, stats: { shortCircuited: true, notIndexedYet: 0, notIndexable: 3 }, sites: { jer: { siteFp: "f1", statsFp: null, inputSig: "sig-jer" } }, hubSig: "hub-1", ...over, }; } export function builtStamp(over: Partial = {}): BuiltStamp { return { v: 1, stampId: "b1", target: "jer", kind: "site", indexStampId: "s1", inputSig: "sig-jer", builtAt: 3_000, commit: "abc", branch: "main", runner: "local", audience: "public", corpusGeneratedAt: "2026-10-06T00:00:00.000Z", files: 10, bytes: 1234, archivesStaged: 0, ...over, }; }