/** * Where the pack's meta and its recorded pins live, pack-relative. The pins ride BESIDE the meta rather than * inside it: clip-meta.json is authored (and re-emitted by the pipeline), the pin ledger is publish output. */ export declare const CLIP_META_FILE = "anims/clip-meta.json"; export declare const PINS_FILE = "anims/pins.json"; /** How far the measured GLB length may sit from the declared `duration`, seconds. */ export declare const DURATION_TOLERANCE_S = 0.05; /** * One published clip, as `pack publish` recorded it. `checksumSha256` is the Vault's own answer, kept VERBATIM; * `sourceSha256` is this CLI's digest of the local bytes, and the only thing a re-run compares against. */ export type PackPin = { assetId: string; version: number; checksumSha256: string; sourceSha256: string; durationSeconds: number; uploadedAt: string; }; export type PackPinFile = { version: 1; clips: Record; }; /** One clip-meta entry that survived the schema pass, with what the files said about it. */ export type PackClip = { /** The full namespaced name, `locomotion.walk` — also the GLB's file name. */ name: string; /** The name the `/clips/` pointer installs. */ bareName: string; /** Pack-relative GLB ref, and its absolute path. */ ref: string; file: string; loop: boolean; duration: number; strideSpeed: number | null; direction?: number; /** Measured seconds off the GLB, null when the file is missing or declares no timings. */ measuredS: number | null; /** The recorded pin, when `pack publish` has already uploaded these exact bytes. */ pin: PackPin | null; }; export type PackValidation = { dir: string; errors: string[]; warnings: string[]; clips: PackClip[]; /** Every clip carries a pin matching its current bytes, so fits/ops can be built for the backend. */ pinned: boolean; }; /** The digest a re-run compares against to decide whether a clip still needs uploading. */ export declare function sourceDigest(bytes: Buffer): string; export declare const packPinsPath: (dir: string) => string; /** Read `anims/pins.json`, or an empty ledger when the pack has never been published. */ export declare function readPackPins(dir: string): PackPinFile; /** The compatibility contract a locomotion pack declares. The CLI's assertFits demands all four arrays. */ export declare function buildPackFits(clips: readonly PackClip[]): Record; /** * One `patch`/`set` op per clip — the pack's whole content, since there is no mesh behind it. Throws on a clip * with no usable pin: an op naming nothing is a listing with a price on it. */ export declare function buildPackOps(clips: readonly PackClip[]): Record[]; /** * Validate a pack directory offline. Everything the backend's clip-set gate refuses is refused here too, plus * the two things it never sees: the local GLBs, and whether the declared duration matches their bytes. */ export declare function validateLocomotionPack(dir: string): PackValidation;