• …k, stale-task recovery, pagination
    
    Person reference photos (any subset of full-body/face x front/side/back) +
    one garment image -> async background task generating front/side/view
    composites of that person wearing the garment, via either GPT Image 2
    (万界方舟) or wavespeed.ai's Seedream v4. Split into three pages
    (admin-dressgen.html create / admin-dressgenlist.html list /
    admin-dressgendetail.html detail) since the combined page's operations
    column was easy to lose off-screen; the list page's action column is now
    sticky and every thumbnail opens a click-to-zoom preview.
    
    Default provider (image2) auto-falls-back to wavespeed per view on any
    failure — an explicit, later product decision overriding this session's
    earlier "no auto-switching around moderation" stance, recorded in the code
    comment above WAVESPEED_API_KEY. A crashed/restarted process no longer
    leaves a task stuck in "generating" forever (resumeDressgenTasks(), same
    idea as T8's resumeDressupGenerations()). GET /api/admin/dressgen is now
    paginated (?page=&pageSize=, defaults 20) instead of returning the whole
    file as a bare array.
    
    19 tests in dressgen-generate.test.js, including a real crash-and-restart
    scenario (SIGKILL against a hanging mock, second process reading the same
    on-disk store) and the auto-fallback path.
    
    Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_01Px7XHxSdWfd5b3vfNMwQjd
    yibo authored
     
    Browse File »

  • Same hue-recolor approach as the first 10 (dev-plan.md's exit bar
    needs >=30 garments given M.7's per-character-garment dedupe), batch
    generation for the new 20 already submitted to H3.
    
    Also stops tracking uploads/ — binary image/video content, not a good
    git citizen, and this content is explicitly placeholder ("占位旗袍" /
    "待替换") the user intends to replace wholesale later. The recipe
    (characters/garments/dance-refs.json) stays tracked; the files they
    point at don't.
    
    Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_011Deddn3sM3oQnmvqWSMb4y
    yibo authored
     
    Browse File »
  • …ce refs, 11 generated videos
    
    Real (non-test) content for T1-T10's asset libraries, entered through
    the actual admin CRUD flow (admin-characters/garments/dance-refs.html
    endpoints) rather than test fixtures: 1 default character, 10 garment
    variants, 3 reference dance videos. Batch-generated through T9's
    /api/admin/batch-gen against the real H3 Console — 11 dance videos
    landed in library.json (one combo generated twice from a dedupe race
    before the edited:true fix), all with characterId/garmentId/
    refDanceVideoId traceability.
    
    Quality note found while spot-checking: 3 of the 11 clips show bare
    feet instead of the character reference's boots, and all three trace
    back to the same dance-ref ("轻柔手势舞", sourced from the S1-spike's
    control clip) — the reference video's own footwear leaks through
    despite the prompt's explicit "weak_reference" instruction. Worth
    avoiding barefoot reference footage when curating real dance-refs.
    
    This doesn't yet hit dev-plan.md's phase-1 exit bar of >=30 videos
    (that requires 30 garments given the M.7 per-character-garment dedupe
    cap; this seeds 10) but is enough real content for dance.html's
    wardrobe to have something to show.
    
    Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
    Claude-Session: https://claude.ai/code/session_011Deddn3sM3oQnmvqWSMb4y
    yibo authored
     
    Browse File »