import { flatGradeClose } from './cinematography.js'; /** * Two-reference outfit swap. Order is FIXED: @image1 = outfit/pose, * @image2 = character/identity. Reversing breaks the swap. Lean prompt only — * NO cinema stack appended (the references carry the photographic register). * Prompt-emitter only: the operator pastes this into the external image tool. */ export function outfitSwapPrompt(): string { return 'Replace the character in @image1 with the character in @image2. Keep the outfit and pose from @image1 exactly. Match the face, bone structure, body type, skin tone, and hair from @image2. Even neutral mid-gray seamless background, soft large-source studio lighting, skin and outfit at their true natural tone against the neutral gray, natural film grain, full body framing.'; } /** Step 1 of the two-step build: design the outfit on a bland generic model. */ export function outfitBuildPrompt(outfit: string): string { return `Build this outfit on a bland generic slim model (no specific identity): ${outfit}. The outfit is the only subject. Even neutral mid-gray seamless background, soft studio lighting, full body framing, natural film grain.`; } /** * Two-reference outfit swap (Joey 3.0 Character Builder, Mode 3). * * Puts a locked character into the outfit AND pose of a different image. * Reference order is the contract: reference 1 carries the outfit and pose, * reference 2 carries the identity. * * Deliberately LEAN. The two references already carry the photographic * register between them, and layering description on top of a swap creates * competing instructions that degrade the identity transfer — the failure this * prompt exists to avoid. Everything it says is about what to KEEP from which * side, not about how the result should look. */ export function outfitReplacementPrompt(style: string, aspectRatio: string): string { return [ `Replace the person in the first reference with the character from the second reference. ${aspectRatio} frame, full body.`, 'Keep the outfit and pose from the FIRST reference exactly — the same garments, colours, fabrics, cut, fit, hem positions, footwear, jewellery and accessories, and the same body position and hand placement.', 'Match the face, bone structure, body type, skin tone, hair, and every identity marker from the SECOND reference exactly.', 'Only the body underneath the outfit changes to match the character; nothing about the garments or the pose is redesigned.', `Style: ${style}.`, ].join(' '); } /** * Invisible-mannequin garment plate (Joey 3.0 Character Builder, Path B). * * A REPAIR, not a starting point. Reach for it only after a direct build came * back with one specific garment rounded off toward generic, and then only for * that garment — building plates pre-emptively because an outfit looks * complicated costs a generation per piece and buys nothing. * * With no face and no body competing for attention the whole prompt can be * about the garment, which is what lets it hold construction a direct build * lost. The hollow-opening language is the load-bearing part: without it the * model fills the neckline with a stump, a mannequin form, or a ghosted torso. */ export function invisibleMannequinPrompt(garment: string, style: string, aspectRatio: string): string { return [ `A garment reference of a single ${garment} worn on an invisible body, floating in a ${aspectRatio} frame and holding its full three-dimensional worn shape.`, 'There is no head, no neck, no hands and no body anywhere in the frame. The garment reads as worn by an invisible figure — full volume, natural drape, and real fabric tension across the chest and shoulders, with the collar and cuffs holding their own three-dimensional shape.', 'Every opening reads as an empty dark hollow looking down into the inside of the garment, with the inner back of the fabric faintly visible.', 'No stump, no skin, no cut edge, no anatomy, no mannequin form, no hanger, no stand, not blurred, not faded, no ghosting, no transparency.', `Style: ${style}.`, `Backdrop and light: ${flatGradeClose('mid-gray', 'standard')}.`, ].join(' '); }