dressup-store.js
875 Bytes
// The three cold-start asset libraries for the dressup dance room
// (dev-plan.md T1; schemas: dressup-dance-room-mvcp.md M.3/M.4/M.5).
const path = require("path");
const { createStore } = require("./store.js");
const characters = createStore(path.join(__dirname, "characters.json"));
const garments = createStore(path.join(__dirname, "garments.json"));
const danceRefs = createStore(path.join(__dirname, "dance-refs.json"));
// In-flight/completed generation jobs (dev-plan.md T8/T9) — tracks a
// submission from "queued" through "generating" to "done"/"failed" so a
// restart can resume polling (h3JobId) and T9's batch UI can show progress.
// The finished *video* itself lands in library.json (M.7), not here.
const generationJobs = createStore(path.join(__dirname, "generation-jobs.json"));
module.exports = { characters, garments, danceRefs, generationJobs };