Repository navigation
Releases
Releases · deusbr/ai-photo-studio
v4.1.0 — P1 Hardening, MCP Next-Gen & Prompt Compiler v5
Security & Hardening (P1)
- Local Web Studio (
lib/studio-web.cjs): Added loopbackHostvalidation (anti-DNS rebinding),Origin/Sec-Fetch-Siteenforcement, strictapplication/jsonmedia-type checks (415), per-session constant-timeX-Studio-TokenCSRF defense (withAI_PHOTO_STUDIO_REQUIRE_TOKENstrict mode), rotating per-response CSP nonces on HTML, default-deny CSP + security headers on API/assets, and safe small-body draining withConnection: closeon early HTTP rejections (fixing Node 20 keep-aliveECONNRESET). - Structural Image Validation (
lib/image-meta.cjs,lib/store.cjs): Removed insecure extension-only fallback; enforced structural header verification for PNG (IHDR), JPEG (SOF markers), and WebP (VP8/VP8L/VP8X), canonical on-disk asset extensions derived from parsed bytes, and real binary MIME serving. - State, Essay & CLI Fixes (
lib/orchestrator.cjs,lib/store.cjs,bin/ai-photo-studio.cjs): Added allowlistedmergeCraftOptionswith explicitnull/empty reset semantics, preserved locks/preset/craft/research acrossapplyVisionAnalysis, connectedactiveRenderVersionrollback tosubmitQa, compiled all 5 engines per Essay frame, upgraded Web UI to 8-Point QA (framingScore), multi-effect checkboxes, toast feedback, and strict CLI option/port validation with pre-pipeline--analyze.
MCP Next-Gen & Glama Packaging (P2)
- Protocol & Transport (
bin/mcp-server.cjs): AddedprotocolVersionnegotiation (2025-06-18,2025-03-26,2024-11-05),ping, JSON-RPC-32700parse errors, multi-chunkContent-Lengthparsing with a 16 KiB header limit and a 64 MiB declared body limit, and opt-inMCP_RESPONSE_FRAMING=content-length. - Multimodal & Sampling: Added
ToolAnnotationsacross all 18 tools,structuredContentresponses, boundedtype: "image"content blocks (includeImage), bidirectionalsampling/createMessagefor subscription-first vision analysis,researchQueryresolution instudio_run_essay, and safestudio_start_webport restart (without exposingsessionToken). - Docker / Glama Readiness: Added hardened non-root
node:24-alpineDockerfileand.dockerignore.
Prompt Compiler v5, ComfyUI & Ollama (P4)
- Prompt Compiler v5 (
lib/crew.cjs): Added separatedpositivePrompt/negativePrompt, affirmativefluxPrompt, nativemidjourneyPrompt(--style raw --no), deduplicated guards, sanitizedresearchHighlightsinjection, and importablecomfyWorkflowJSON graph generation. - Resilient Executors & Local Vision (
lib/executors.cjs,lib/craft-research.cjs): Added HTTP deadlines through response consumption, streaming byte limits, an overall ComfyUI deadline and a confirmed unique anchor upload for each execution. Includes safe JSON/Markdown extraction, real ComfyUI/upload/image+/prompt+/history+/viewexecution (including clean queued-job handling in MCP & Web), localOLLAMA_URLvision provider, and unique staging files for the research cache. The Windows copy fallback does not guarantee atomic replacement.
Verification
npm run check(node --check on all modules) — passed.node --test— 48/48 passing (Node 24).repo-release-guard audit— ready, no secret findings;plan-tag v4.1.0— version matches, clean tree.mcp-doctor --probe— stdio handshake OK, 18 tools.
Full Changelog: v4.0.0...v4.1.0
v4.0.0 — Craft Research, Posing, Cinema/Trailer & Beauty Studio
Changelog
All notable changes to ai-photo-studio are documented in this file.
[4.0.0] - 2026-11-23
Added
- Curated Craft Encyclopedia (
lib/craft-library.cjs): 12 posing mechanics (contrapposto, turtle jawline, edge-of-hand, negative-space triangles, over-shoulder cinema, couple zero-overlap, product plinth/flat-lay), 8 camera/film stocks (Hasselblad X2D + Portra 400, ARRI Alexa 35 + Vision3 500T, Leica M6 + CineStill 800T, Phase One IQ4 150MP, Fujifilm GFX 100 II), 9 lenses (24mm–135mm,40mm Cooke Anamorphic,90mm Macro Tilt-Shift), 10 optical filters/effects (Black Pro-Mist 1/8 & 1/4, Glimmerglass 1/4, Anamorphic Flare, Volumetric Haze, Teal & Amber Grade), 8 editorial makeup/grooming finishes, and 8 lighting rigs. - Hybrid Technique Research (
lib/craft-research.cjs): Bilingual (PT-BR/EN) search across the curated catalog + live Wikipedia & DuckDuckGo lookup with a 24h local cache. - Smart Look Composer & Guardrails (
lib/craft-planner.cjs): Automatic craft stack recommendation (studio_compose_look) with optical distortion warnings (e.g.,24mmon tight beauty close-ups),keepPoselock enforcement, and automatic stripping of human skin/makeup terms onproductshoots. - 3 New Presets & 5th Prompt Engine: Added
cinema-trailer(2.39:1anamorphic),high-fashion-beauty,street-flash-editorial, andmidjourneyFluxPrompt. - Full MCP v4 Surface (
bin/mcp-server.cjs): Expanded to 18 tools, 8 MCP Resources (studio://catalog/*,studio://playbook), 3 MCP Prompts, and dualNDJSON+Content-Lengthstdio framing. - Web Workbench & CLI Upgrades: Added
research&catalogCLI commands,--pose/--camera/--lens/--effect/--makeup/--lighting/--researchflags, and interactive Craft Studio + Live Researcher panel in the Web UI.
Fixed
- Refined
parseDirectedIntentinlib/orchestrator.cjsso descriptive words like"subtle"inside afull-editorialbrief no longer trigger unintendedsubtle-retouchpose locks. - Prevented duplicate
"Shot on Shot on ..."prefixing incodexPromptwhen camera snippets already begin with"Shot on".
v3.0.0 — Essence-Driven Art Direction & Master Cinematography Physics
Highlights
- Essence-First Creative Engine (No Predefined Clichés): Extracts
essenceAnalysis(mood, wardrobe archetype, cultural world, subtext) and synthesizes bespokecustomProposalsandcustomEssayFramestailored strictly to each photo via Vision AI (studio_analyze_photo/--analyze) or host VLM input. - Master Cinematography Lighting Physics (
lighting-director): Adds physicallymotivatedLightSource, deliberatecontrastRatio(2:1to8:1),negativeFillshadow sculpting, andkelvinSeparationthermal depth. - Visual Storytelling & Skin Science (
art-stylist+camera-optics): Adds foreground depth layering, frame-within-a-frame composition, decisive-moment action, optical character, and melanin-safe sub-surface scattering.
v2.3.0 — Native Multi-Shot Photo Essay, Screenshot Auto-Crop & Optional CLI Vision
Highlights
- Native Multi-Shot Photo Essay (
essay/studio_run_essay/ Web UI Storyboard): Plans and compiles 2–6 cohesive editorial frames (default 5: 35mm walk-by, 50mm cafe, 35mm architectural courtyard, 85mm close-up, 50mm golden-hour rim) varying poses, angles, and lenses while keeping shared Anti-Slop and garment locks. - Zero-Dependency Mobile Screenshot Auto-Crop (
lib/preprocess.cjs): Automatically detects tall mobile screenshots (ratio < 0.56) and crops clean inner anchors (anchor_clean.jpg) via native WindowsSystem.Drawing/ macOSsips. - Optional Standalone Vision Analysis (
--analyze/studio_analyze_photo): ExtractsexpressionTruth,garmentMicroDetails, and context-matched locations automatically whenGEMINI_API_KEYorOPENAI_API_KEYis present.
v2.2.0 — Context-Matched Art Direction & Natural Expression Lock
Highlights
- Context-Matched Art Director (
lib/crew.cjs+lib/orchestrator.cjs): Selects backgrounds coherent with the subjects actual wardrobe and vibe (contemporary concrete/wood interiors, modern cafes, urban streets), banning random European stone terrace clichés unless requested. - Natural Head & Gaze Preservation: Prevents stiff mannequin front-stares by locking relaxed eyelid heaviness and natural head tilt.
- Garment Fit & Physics Lock: Preserves relaxed/boxy fabric drape, exact placket color, stripe spacing, and authentic stitching without over-stiffening clothes.
v2.1.0 — Anti-Slop Realism, Expression Truth & Garment Micro-Anchors
Highlights
- Anti-Slop & Anti-Beautification Engine (
lib/crew.cjs+lib/orchestrator.cjs): Bans generic AI stock smiles and plastic skin smoothing; enforces visible pores, vellus hair, natural under-eye creases, and candid unretouched optics. - Expression Truth & Garment Micro-Anchors: Explicitly locks mouth/eye expression truth and inventories collars, stripe cadence, chest patches/logos, cap embroidery, buttons, and straps.
- End-Weighted Preservation Guardrails: Places strict preservation rules at the end of
codexPrompt,geminiPrompt, andclaudeComfyPromptto prevent drift and ambient color tinting. - 8-Axis Anti-AI QA (
antiSlopScore+garmentFidelityScore): Auto-flags beautification drift or erased clothing logos and routes targeted fixes. - Mobile Screenshot Detection (
classifyImageGeometry): Auto-flags tall phone screenshots (ratio < 0.56) for clean UI stripping.
v2.0.0 — 8-Agent Autonomous & Directed Photo Studio
Highlights
- 8-Specialist Crew (
lib/crew.cjs+lib/orchestrator.cjs):Diretor de Ensaio,Analista Forense,Guardião de Consistência,Diretor de Arte & Styling,Especialista em Iluminação,Câmera & Lentes,Editor Master, andAuditor Anti-IA & Realismo. - Autonomous Mode (
auto/studio_run_autonomous): Drop only a photo — auto-triages subject & framing, proposes 3 curated creative directions, logs the Studio Channel Board, and compiles engine-tailored prompts. - Directed Mode (
direct/studio_run_directed): Bilingual (PT-BR/EN) intent & lock parser classifyingsubtle-retouch,targeted-edit, andfull-editorialwith immutable pose/wardrobe/background/framing locks. - Anti-AI Critique-Refinement Loop & Asset Lineage: 6-point QA scorecard (
studio_submit_qa) with automaticrouteToRolesrouting,revisionDeltaPromptdelta patches, andv1 -> v2 -> v3version lineage. - Optional BYOK Executor (
lib/executors.cjs): Remains 100% Subscription-First by default, with optional zero-dep Gemini/OpenAI image execution when API keys are set. - **Upgraded Web Workbench (
lib/studio-web.cjs), 13 MCP Tools, and UpdatedSKILL.md.
v1.0.1 — Product Prompt Hygiene & Dynamic Web Monitor
- Omit portrait-only terms (
skin pores,catchlights) fromproduct-commercialprompt packs. - Dynamically match
.compare-wrapaspect-ratioto each job's source image dimensions withmax-height: 75vh. - Preserve copy button labels after clipboard copy and sync
serverInfo.versionfrompackage.json.
v1.0.0
v1.0.0
- Zero-dependency 7-role AI Photo Studio for Codex, Gemini CLI, and Claude Code/Desktop (runs on existing plan subscriptions with zero extra image API keys).
- Stdio JSON-RPC 2.0 MCP server (
bin/mcp-server.cjs) exposing 9 studio orchestration tools + portable multi-agentSKILL.md& optical/lighting playbook. - Local Web Studio UI (
http://127.0.0.1:4321) with photo upload, crew timeline, 1-click prompt copying, and interactive Before/After comparison slider. - Cross-client installer (
bin/ai-photo-studio.cjs install) + automatednode:testsuite (5 tests) and multi-OS GitHub Actions CI matrix.