Skip to content

Releases

v4.1.0 — P1 Hardening, MCP Next-Gen & Prompt Compiler v5

Choose a tag to compare

@deusbr deusbr released this 27 Nov 23:12
02532df

Security & Hardening (P1)

  • Local Web Studio (lib/studio-web.cjs): Added loopback Host validation (anti-DNS rebinding), Origin/Sec-Fetch-Site enforcement, strict application/json media-type checks (415), per-session constant-time X-Studio-Token CSRF defense (with AI_PHOTO_STUDIO_REQUIRE_TOKEN strict mode), rotating per-response CSP nonces on HTML, default-deny CSP + security headers on API/assets, and safe small-body draining with Connection: close on early HTTP rejections (fixing Node 20 keep-alive ECONNRESET).
  • 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 allowlisted mergeCraftOptions with explicit null/empty reset semantics, preserved locks/preset/craft/research across applyVisionAnalysis, connected activeRenderVersion rollback to submitQa, 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): Added protocolVersion negotiation (2025-06-18, 2025-03-26, 2024-11-05), ping, JSON-RPC -32700 parse errors, multi-chunk Content-Length parsing with a 16 KiB header limit and a 64 MiB declared body limit, and opt-in MCP_RESPONSE_FRAMING=content-length.
  • Multimodal & Sampling: Added ToolAnnotations across all 18 tools, structuredContent responses, bounded type: "image" content blocks (includeImage), bidirectional sampling/createMessage for subscription-first vision analysis, researchQuery resolution in studio_run_essay, and safe studio_start_web port restart (without exposing sessionToken).
  • Docker / Glama Readiness: Added hardened non-root node:24-alpine Dockerfile and .dockerignore.

Prompt Compiler v5, ComfyUI & Ollama (P4)

  • Prompt Compiler v5 (lib/crew.cjs): Added separated positivePrompt/negativePrompt, affirmative fluxPrompt, native midjourneyPrompt (--style raw --no), deduplicated guards, sanitized researchHighlights injection, and importable comfyWorkflow JSON 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 + /view execution (including clean queued-job handling in MCP & Web), local OLLAMA_URL vision 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

Choose a tag to compare

@deusbr deusbr released this 24 Nov 00:26

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., 24mm on tight beauty close-ups), keepPose lock enforcement, and automatic stripping of human skin/makeup terms on product shoots.
  • 3 New Presets & 5th Prompt Engine: Added cinema-trailer (2.39:1 anamorphic), high-fashion-beauty, street-flash-editorial, and midjourneyFluxPrompt.
  • Full MCP v4 Surface (bin/mcp-server.cjs): Expanded to 18 tools, 8 MCP Resources (studio://catalog/*, studio://playbook), 3 MCP Prompts, and dual NDJSON + Content-Length stdio framing.
  • Web Workbench & CLI Upgrades: Added research & catalog CLI commands, --pose/--camera/--lens/--effect/--makeup/--lighting/--research flags, and interactive Craft Studio + Live Researcher panel in the Web UI.

Fixed

  • Refined parseDirectedIntent in lib/orchestrator.cjs so descriptive words like "subtle" inside a full-editorial brief no longer trigger unintended subtle-retouch pose locks.
  • Prevented duplicate "Shot on Shot on ..." prefixing in codexPrompt when camera snippets already begin with "Shot on".

v3.0.0 — Essence-Driven Art Direction & Master Cinematography Physics

Choose a tag to compare

@deusbr deusbr released this 20 Nov 18:06

Highlights

  • Essence-First Creative Engine (No Predefined Clichés): Extracts essenceAnalysis (mood, wardrobe archetype, cultural world, subtext) and synthesizes bespoke customProposals and customEssayFrames tailored strictly to each photo via Vision AI (studio_analyze_photo / --analyze) or host VLM input.
  • Master Cinematography Lighting Physics (lighting-director): Adds physically motivatedLightSource, deliberate contrastRatio (2:1 to 8:1), negativeFill shadow sculpting, and kelvinSeparation thermal 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

Choose a tag to compare

@deusbr deusbr released this 20 Nov 17:25

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 Windows System.Drawing / macOS sips.
  • Optional Standalone Vision Analysis (--analyze / studio_analyze_photo): Extracts expressionTruth, garmentMicroDetails, and context-matched locations automatically when GEMINI_API_KEY or OPENAI_API_KEY is present.

v2.2.0 — Context-Matched Art Direction & Natural Expression Lock

Choose a tag to compare

@deusbr deusbr released this 20 Nov 16:21

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

Choose a tag to compare

@deusbr deusbr released this 20 Nov 16:12

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, and claudeComfyPrompt to 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

Choose a tag to compare

@deusbr deusbr released this 20 Nov 15:51

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, and Auditor 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 classifying subtle-retouch, targeted-edit, and full-editorial with immutable pose/wardrobe/background/framing locks.
  • Anti-AI Critique-Refinement Loop & Asset Lineage: 6-point QA scorecard (studio_submit_qa) with automatic routeToRoles routing, revisionDeltaPrompt delta patches, and v1 -> v2 -> v3 version 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 Updated SKILL.md.

v1.0.1 — Product Prompt Hygiene & Dynamic Web Monitor

Choose a tag to compare

@deusbr deusbr released this 19 Nov 23:08
  • Omit portrait-only terms (skin pores, catchlights) from product-commercial prompt packs.
  • Dynamically match .compare-wrap aspect-ratio to each job's source image dimensions with max-height: 75vh.
  • Preserve copy button labels after clipboard copy and sync serverInfo.version from package.json.

v1.0.0

Choose a tag to compare

@deusbr deusbr released this 19 Nov 21:38

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-agent SKILL.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) + automated node:test suite (5 tests) and multi-OS GitHub Actions CI matrix.