@sogni-ai/sogni-creative-agent-skill 3.33.0 → 3.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2310,9 +2310,9 @@ const PROMPT_CONTRACTS = [
2310
2310
  "contractId": "generate_image_v1",
2311
2311
  "version": "1.1.0",
2312
2312
  "toolName": "generate_image",
2313
- "baseDescription": "generate_image creates images from text descriptions. Use for text-only image generation;\nuse edit_image when uploaded or reference images must guide identity/likeness.\nException: Z-image, Z-image Turbo, and Krea 2 Turbo image-to-image/enhancement requests\nuse generate_image with model=\"z-turbo\", model=\"z-image\", or model=\"krea-2-turbo\",\nsourceImageIndex=-1, and starting_image_strength; do not route explicit base-model\nZ-image Turbo or Krea 2 Turbo uploaded-image enhancement to edit_image because edit_image\ndoes not expose those base image-to-image models.\n\nMODEL CHOICE: If the user asks for Krea 2 Turbo, choose model=\"krea-2-turbo\". If they ask\nfor Dark Beast Krea 2, choose model=\"dark-beast-krea2\". If they ask for Dark Beast Z-Image\nTurbo, choose model=\"dark-beast-z-turbo\". If they ask for Chroma 1 HD, choose model=\"chroma1-hd\".\nIf they ask for anime or anime-style output without naming a model, choose model=\"one-obsession-v22\".\nBase Z-image and Krea 2 Turbo image-to-image/enhancement requests stay on generate_image with\nsourceImageIndex and starting_image_strength; identity-preserving Krea edits with reference\nphotos use edit_image instead.\n\nBATCH FAN-OUT DEFAULT (READ BEFORE ANYTHING ELSE BELOW):\nWhen the user explicitly asks for N images in the CURRENT turn, set numberOfVariations=N\nin one call. Avoid multiple serial generate_image calls unless the user explicitly wants\nindependent projects, isolated approvals, or per-output settings that cannot share one project.\nDo not omit numberOfVariations and try to \"generate the next one after this finishes\".\nTrigger phrasings:\n\"draw N\", \"make N\", \"give me N\", \"show me N\", \"render N\", \"create N\", \"generate N\",\n\"N more\", \"another N\", \"N as separate\", \"N separate images\", \"N different images\",\n\"N options\", \"N takes\", \"N versions\", \"N variations\", \"N pictures of\",\n\"all at the same time\", \"in parallel\", \"side by side as separate\".\n\nTHE PRIOR TURN DOES NOT ANCHOR THE CURRENT TURN. If the prior assistant turn used\nnumberOfVariations=1 with a composite \"N subjects in one image\" prompt, and the user\nnow says \"draw N more as separate images\" / \"as separate\" / \"separately\", DO NOT carry\nover numberOfVariations=1 from the prior call. The user is correcting that interpretation;\nset numberOfVariations=N for THIS call with one self-contained prompt per image via {|}\nDynamic Prompt branches. The new turn's count + separation language always wins over the\nprevious turn's pattern.\n\nWHEN BATCH FAN-OUT DOES NOT APPLY: numberOfVariations=1 with multiple subjects packed into\nONE prompt is correct only when the user clearly wants a SINGLE composite image (e.g.\n\"draw 2 goats in a meadow\" with no separation language, or explicit \"in one image\" / \"one\npicture of N\" / \"single image\" / \"composite\" / \"sheet\" / \"side-by-side composition\").\n\nFLUX.2 PROMPT ORDER: [SUBJECT] → [ATTRIBUTES] → [ACTION/POSE] → [CAMERA/FRAMING]\n→ [ENVIRONMENT] → [LIGHTING] → [STYLE/MEDIUM] → [MATERIALS/TEXTURES] →\n[SECONDARY DETAILS]. By default, start with the main subject and concrete observable\nattributes; use mood or atmosphere first only when the user explicitly asks for that shape.\nUse concrete nouns and observable adjectives — \"soft overcast daylight\" not \"nice lighting\".\nGood defaults when user is underspecified: medium shot for portraits, wide shot for\nenvironments, eye-level angle, soft natural light for realism.\n\nDYNAMIC PROMPTS: When numberOfVariations > 1, use Dynamic Prompt syntax to make each\nvariation meaningfully different — not just seed-different. Syntax: {a|b|c} cycles\nsequentially, {@a|b|c} picks randomly, {~a|b} paired cycling across groups. Rules: (1) Vary\nONLY what the user left unspecified — lock in everything they specified. (2) Match option\ncount to numberOfVariations so every result is unique. (3) Briefly tell the user what you're\nvarying without exposing raw {|} syntax unless the user asks to inspect the prompt.\n(4) Skip when: user wants consistency, prompt is fully\nspecified, user typed their own {|} syntax, or iterating on a specific result. (5) Do not put\nthe count or the word \"versions\"/\"variations\" inside the prompt — the prompt always describes\na single image. The multiplicity comes ONLY from numberOfVariations + the {|} syntax.\nLINKED VARIANTS: when multiple attributes must stay paired per result, use ONE top-level\nDynamic Prompt branch with one complete self-contained prompt per output. Do NOT split\nlinked fields into separate Dynamic Prompt groups.\n\nSELECTION-GATED IMAGE STAGES: If the user asks for N image options and says they will pick\none before a later dance/video/animation, call generate_image once with numberOfVariations=N.\nAfter images are created, stop and ask the user to choose unless the user explicitly asked\nto run the later stage immediately.\n\nIMAGE→VIDEO DIMENSION RULE: When generating an image that will feed into a video tool\n(animate_photo, sound_to_video, etc.), the image MUST be generated at the SAME aspect\nratio and dimensions as the target video. Default video aspect ratio is 16:9 landscape —\npass aspectRatio=\"16:9\" (or the user's specified/reference ratio) so the source image\nmatches the video output. Do not generate a square image for a widescreen video. Exception:\na composite GPT Image 2 storyboard/keyframe sheet for a later Seedance video is a board,\nnot a single source frame; unless the user explicitly specifies a storyboard page/canvas/sheet\nshape, default the sheet image dimensions to a balanced grid that hosts the target\nscene-cell/frame aspect natively (portrait video target -> portrait or square sheet whose\ncolumns x rows grid produces ~9:16 cells; landscape video target -> landscape sheet whose\nrows x columns grid produces ~16:9 cells). Each scene-cell/frame area preserves the target\nvideo aspect ratio.\n\nSTORYBOARD IMAGE BATCH RULE: When rendering scene keyframes from a screenplay/storyboard,\nnumberOfVariations is only the count; the prompt should be one Dynamic Prompt branch with one\nfull keyframe prompt per scene:\n{scene 1 full keyframe prompt|scene 2 full keyframe prompt|...|scene N full keyframe prompt}.\nDo not set numberOfVariations=N with only the first scene prompt — that creates N versions of\nscene 1. For full project requests, one generate_image batch for all scene keyframes, then\none animate_photo batch for all video clips in parallel.\n\nSTORYTELLING / BRAND / SOCIAL IMAGE PROMPTS: If generating a storyboard, ad concept,\ntrailer sheet, meme, creator post, or provocative social concept, make the first frame or\npanel immediately legible. Preserve the user's requested tone and audience. Use concrete\ncomposition, persona, product/brand role, caption placement, readable required text, and a\nclear visual transformation or punchline. For provocative adult social content, keep subjects\nclearly adult and consensual, PG-13/non-explicit, and avoid minor-coded styling or school-coded\nsettings while still optimizing visual magnet, persona, caption bait, and replay/comment value.\n\nGPT IMAGE 2 STORYBOARD SHEET → SEEDANCE AUTO-PROCEED: If the user asks to run the whole\nGPT Image 2 storyboard/keyframe sheet plus Seedance workflow without approval, the FIRST\ngenerate_image call must create ONE composite storyboard/keyframe sheet, not loose concept\nart and not separate keyframes. Use model=\"gpt-image-2\", numberOfVariations=1, and a\ncompiled storyboard prompt that literally includes: \"Create exactly N sequential video\nstoryboard frames as one composite storyboard image\", \"Target final video aspect ratio: X\",\na `SCENES:` section, and exactly N concrete scene entries named `SCENE_01`, `SCENE_02`,\netc. Each scene entry must include `Visual/Action:`, `Camera/Motion:`, `Dialogue/VO:`\n(use `[no dialogue]` when silent), `Audio/SFX:`, and any reference/visible-text notes\nneeded for that scene. Do not send only a source brief, storyboard concept, or generic\nlayout instructions as the prompt; malformed compiled storyboard prompts are blocked by\nquality audit instead of being repaired at runtime. If the user does not explicitly specify\na frame count, choose N with the shared storyboard density default: at least one key visual\nbeat about every 2 seconds, rounded up and clamped to 6-16 total storyboard frames\n(for example, a 60 second commercial defaults to N=16). Unless the user explicitly specifies another\nstoryboard page/canvas/sheet shape, default the GPT Image 2 storyboard sheet pixel dimensions\nto a balanced grid that hosts the target cell aspect natively: for a 9:16 portrait video,\npick a portrait-leaning sheet whose columns x rows grid produces ~9:16 cells (e.g., 12 cells\n-> ~3:4 sheet around 1728x2304, 6 cells -> ~27:32 around 1840x2176, 9 cells -> ~9:16 around\n1504x2672); for a 16:9 landscape video, pick a landscape sheet whose rows x columns grid\nproduces ~16:9 cells (e.g., 12 cells -> ~4:3 sheet around 2304x1728). Do not force landscape\n2560x1440 when cells are portrait — a landscape sheet with a portrait-cell grid cannot host\n9:16 cells without crushing them. Preserve the requested final video aspect ratio for every\nframe area. After\nthat image completes, call generate_video once using the generated storyboard board as\n@Image1/referenceImageIndices=[0], with skipPromptProcessing=false only when the user\nexplicitly wants the storyboard text rewritten; otherwise preserve the compiled shot guide\nand use skipPromptProcessing=true, expandPrompt=false.\n\nDO NOT USE generate_image FOR UPLOADED REFERENCE LOOPED VIDEO SEGMENTS: If the user says\nthe same uploaded image/reference should be reused as the first frame and last frame of each\nscripted segment/scene/clip before stitching, they are explicitly asking to animate the\nuploaded image, not to generate new storyboard keyframes. Do not call generate_image for\nthat request. Call animate_photo once with repeated uploaded source indices and per-scene\nprompts.\n\nREUSING RESULTS: When the user asks to redo, retry, or revise (e.g., \"try a new version\",\n\"redo the video with X\"), reuse the existing source images — do NOT regenerate them unless\nthe user explicitly asks for new images or describes changes to the images themselves.\nReference the existing result indices from the prior generation. If unsure whether the user\nwants new images, ask — don't regenerate by default.",
2313
+ "baseDescription": "generate_image creates images from text descriptions. Use for text-only image generation;\nuse edit_image when uploaded or reference images must guide identity/likeness.\nException: Z-image, Z-image Turbo, and Krea 2 Turbo image-to-image/enhancement requests\nuse generate_image with model=\"z-turbo\", model=\"z-image\", or model=\"krea-2-turbo\",\nsourceImageIndex=-1, and starting_image_strength; do not route explicit base-model\nZ-image Turbo or Krea 2 Turbo uploaded-image enhancement to edit_image because edit_image\ndoes not expose those base image-to-image models.\n\nMODEL CHOICE: If the user asks for Krea 2 Turbo, choose model=\"krea-2-turbo\". If they ask\nfor Dark Beast Krea 2, choose model=\"dark-beast-krea2\". If they ask for Dark Beast Z-Image\nTurbo, choose model=\"dark-beast-z-turbo\". If they ask for Chroma 1 HD, choose model=\"chroma1-hd\".\nIf they ask for anime or anime-style output without naming a model, choose model=\"one-obsession-v22\".\nBase Z-image and Krea 2 Turbo image-to-image/enhancement requests stay on generate_image with\nsourceImageIndex and starting_image_strength; identity-preserving Krea edits with reference\nphotos use edit_image instead.\n\nBATCH FAN-OUT DEFAULT (READ BEFORE ANYTHING ELSE BELOW):\nWhen the user explicitly asks for N images in the CURRENT turn, set numberOfVariations=N\nin one call. Avoid multiple serial generate_image calls unless the user explicitly wants\nindependent projects, isolated approvals, or per-output settings that cannot share one project.\nDo not omit numberOfVariations and try to \"generate the next one after this finishes\".\nTrigger phrasings:\n\"draw N\", \"make N\", \"give me N\", \"show me N\", \"render N\", \"create N\", \"generate N\",\n\"N more\", \"another N\", \"N as separate\", \"N separate images\", \"N different images\",\n\"N options\", \"N takes\", \"N versions\", \"N variations\", \"N pictures of\",\n\"all at the same time\", \"in parallel\", \"side by side as separate\".\n\nTHE PRIOR TURN DOES NOT ANCHOR THE CURRENT TURN. If the prior assistant turn used\nnumberOfVariations=1 with a composite \"N subjects in one image\" prompt, and the user\nnow says \"draw N more as separate images\" / \"as separate\" / \"separately\", DO NOT carry\nover numberOfVariations=1 from the prior call. The user is correcting that interpretation;\nset numberOfVariations=N for THIS call with one self-contained prompt per image via {|}\nDynamic Prompt branches. The new turn's count + separation language always wins over the\nprevious turn's pattern.\n\nWHEN BATCH FAN-OUT DOES NOT APPLY: numberOfVariations=1 with multiple subjects packed into\nONE prompt is correct only when the user clearly wants a SINGLE composite image (e.g.\n\"draw 2 goats in a meadow\" with no separation language, or explicit \"in one image\" / \"one\npicture of N\" / \"single image\" / \"composite\" / \"sheet\" / \"side-by-side composition\").\n\nIMAGE PROMPT ORDER: [SUBJECT] → [ATTRIBUTES] → [ACTION/POSE] → [CAMERA/FRAMING]\n→ [ENVIRONMENT] → [LIGHTING] → [STYLE/MEDIUM] → [MATERIALS/TEXTURES] →\n[SECONDARY DETAILS]. By default, start with the main subject and concrete observable\nattributes; use mood or atmosphere first only when the user explicitly asks for that shape.\nUse concrete nouns and observable adjectives — \"soft overcast daylight\" not \"nice lighting\".\nGood defaults when user is underspecified: medium shot for portraits, wide shot for\nenvironments, eye-level angle, soft natural light for realism.\n\nDYNAMIC PROMPTS: When numberOfVariations > 1, use Dynamic Prompt syntax to make each\nvariation meaningfully different — not just seed-different. Syntax: {a|b|c} cycles\nsequentially, {@a|b|c} picks randomly, {~a|b} paired cycling across groups. Rules: (1) Vary\nONLY what the user left unspecified — lock in everything they specified. (2) Match option\ncount to numberOfVariations so every result is unique. (3) Briefly tell the user what you're\nvarying without exposing raw {|} syntax unless the user asks to inspect the prompt.\n(4) Skip when: user wants consistency, prompt is fully\nspecified, user typed their own {|} syntax, or iterating on a specific result. (5) Do not put\nthe count or the word \"versions\"/\"variations\" inside the prompt — the prompt always describes\na single image. The multiplicity comes ONLY from numberOfVariations + the {|} syntax.\nLINKED VARIANTS: when multiple attributes must stay paired per result, use ONE top-level\nDynamic Prompt branch with one complete self-contained prompt per output. Do NOT split\nlinked fields into separate Dynamic Prompt groups. Treat every batch-wide requirement\nquantified as \"each\", \"every\", or \"all\" as a hard per-option invariant: repeat it inside\nEVERY option, including identity/pose continuity, clothing/style, the concrete setting, and\nliteral visible names, labels, captions, flags, logos, or symbols. A shared prefix or another\noption is never a substitute for a complete standalone option.\nEach option must name its actual styling, setting, accessories, and requested literal text or\nsymbol. Never emit meta-placeholders such as \"variant-specific background\", \"requested\nsymbol\", \"humorous alternate name\", or \"bake the name and symbol into the image\".\nWhen one option remakes/preserves an original and the others are themed variants, make the\noriginal option equally concrete: specify the original clothing and setting plus every\nrequested label, flag, logo, symbol, or prop; do not write only \"the original\".\n\nSELECTION-GATED IMAGE STAGES: If the user asks for N image options and says they will pick\none before a later dance/video/animation, call generate_image once with numberOfVariations=N.\nAfter images are created, stop and ask the user to choose unless the user explicitly asked\nto run the later stage immediately.\n\nIMAGE→VIDEO DIMENSION RULE: When generating an image that will feed into a video tool\n(animate_photo, sound_to_video, etc.), the image MUST be generated at the SAME aspect\nratio and dimensions as the target video. Default video aspect ratio is 16:9 landscape —\npass aspectRatio=\"16:9\" (or the user's specified/reference ratio) so the source image\nmatches the video output. Do not generate a square image for a widescreen video. Exception:\na composite GPT Image 2 storyboard/keyframe sheet for a later Seedance video is a board,\nnot a single source frame; unless the user explicitly specifies a storyboard page/canvas/sheet\nshape, default the sheet image dimensions to a balanced grid that hosts the target\nscene-cell/frame aspect natively (portrait video target -> portrait or square sheet whose\ncolumns x rows grid produces ~9:16 cells; landscape video target -> landscape sheet whose\nrows x columns grid produces ~16:9 cells). Each scene-cell/frame area preserves the target\nvideo aspect ratio.\n\nSTORYBOARD IMAGE BATCH RULE: When rendering scene keyframes from a screenplay/storyboard,\nnumberOfVariations is only the count; the prompt should be one Dynamic Prompt branch with one\nfull keyframe prompt per scene:\n{scene 1 full keyframe prompt|scene 2 full keyframe prompt|...|scene N full keyframe prompt}.\nDo not set numberOfVariations=N with only the first scene prompt — that creates N versions of\nscene 1. For full project requests, one generate_image batch for all scene keyframes, then\none animate_photo batch for all video clips in parallel.\n\nSTORYTELLING / BRAND / SOCIAL IMAGE PROMPTS: If generating a storyboard, ad concept,\ntrailer sheet, meme, creator post, or provocative social concept, make the first frame or\npanel immediately legible. Preserve the user's requested tone and audience. Use concrete\ncomposition, persona, product/brand role, caption placement, readable required text, and a\nclear visual transformation or punchline. For provocative adult social content, keep subjects\nclearly adult and consensual, PG-13/non-explicit, and avoid minor-coded styling or school-coded\nsettings while still optimizing visual magnet, persona, caption bait, and replay/comment value.\n\nGPT IMAGE 2 STORYBOARD SHEET → SEEDANCE AUTO-PROCEED: If the user asks to run the whole\nGPT Image 2 storyboard/keyframe sheet plus Seedance workflow without approval, the FIRST\ngenerate_image call must create ONE composite storyboard/keyframe sheet, not loose concept\nart and not separate keyframes. Use model=\"gpt-image-2\", numberOfVariations=1, and a\ncompiled storyboard prompt that literally includes: \"Create exactly N sequential video\nstoryboard frames as one composite storyboard image\", \"Target final video aspect ratio: X\",\na `SCENES:` section, and exactly N concrete scene entries named `SCENE_01`, `SCENE_02`,\netc. Each scene entry must include `Visual/Action:`, `Camera/Motion:`, `Dialogue/VO:`\n(use `[no dialogue]` when silent), `Audio/SFX:`, and any reference/visible-text notes\nneeded for that scene. Do not send only a source brief, storyboard concept, or generic\nlayout instructions as the prompt; malformed compiled storyboard prompts are blocked by\nquality audit instead of being repaired at runtime. If the user does not explicitly specify\na frame count, choose N with the shared storyboard density default: at least one key visual\nbeat about every 2 seconds, rounded up and clamped to 6-16 total storyboard frames\n(for example, a 60 second commercial defaults to N=16). Unless the user explicitly specifies another\nstoryboard page/canvas/sheet shape, default the GPT Image 2 storyboard sheet pixel dimensions\nto a balanced grid that hosts the target cell aspect natively: for a 9:16 portrait video,\npick a portrait-leaning sheet whose columns x rows grid produces ~9:16 cells (e.g., 12 cells\n-> ~3:4 sheet around 1728x2304, 6 cells -> ~27:32 around 1840x2176, 9 cells -> ~9:16 around\n1504x2672); for a 16:9 landscape video, pick a landscape sheet whose rows x columns grid\nproduces ~16:9 cells (e.g., 12 cells -> ~4:3 sheet around 2304x1728). Do not force landscape\n2560x1440 when cells are portrait — a landscape sheet with a portrait-cell grid cannot host\n9:16 cells without crushing them. Preserve the requested final video aspect ratio for every\nframe area. After\nthat image completes, call generate_video once using the generated storyboard board as\n@Image1/referenceImageIndices=[0], with skipPromptProcessing=false only when the user\nexplicitly wants the storyboard text rewritten; otherwise preserve the compiled shot guide\nand use skipPromptProcessing=true, expandPrompt=false.\n\nDO NOT USE generate_image FOR UPLOADED REFERENCE LOOPED VIDEO SEGMENTS: If the user says\nthe same uploaded image/reference should be reused as the first frame and last frame of each\nscripted segment/scene/clip before stitching, they are explicitly asking to animate the\nuploaded image, not to generate new storyboard keyframes. Do not call generate_image for\nthat request. Call animate_photo once with repeated uploaded source indices and per-scene\nprompts.\n\nREUSING RESULTS: When the user asks to redo, retry, or revise (e.g., \"try a new version\",\n\"redo the video with X\"), reuse the existing source images — do NOT regenerate them unless\nthe user explicitly asks for new images or describes changes to the images themselves.\nReference the existing result indices from the prior generation. If unsure whether the user\nwants new images, ask — don't regenerate by default.",
2314
2314
  "parameterDocs": {
2315
- "prompt": "Text description. Follow FLUX.2 prompt order: subject first. Use Dynamic Prompt syntax when numberOfVariations > 1.",
2315
+ "prompt": "Text description. Put the subject first. Use Dynamic Prompt syntax when numberOfVariations > 1.",
2316
2316
  "numberOfVariations": "Number of distinct outputs. Use Dynamic Prompt {|} syntax to vary one attribute per image. Never put the count in the prompt itself.",
2317
2317
  "aspectRatio": "For ordinary images feeding a video tool, set to match the target video aspect ratio. For composite GPT Image 2 storyboard sheets, default the sheet pixel dimensions to a balanced grid that hosts the target cell aspect natively (portrait video target -> portrait/square sheet, landscape video target -> landscape sheet) unless the user explicitly specifies a storyboard page/canvas/sheet shape; keep the target video ratio inside each frame area."
2318
2318
  }
@@ -2549,21 +2549,21 @@ const PROMPT_CONTRACTS = [
2549
2549
  },
2550
2550
  {
2551
2551
  "contractId": "enhance_prompt_v1",
2552
- "version": "1.0.0",
2552
+ "version": "1.1.0",
2553
2553
  "toolName": "enhance_prompt",
2554
- "baseDescription": "enhance_prompt enhances or adapts a source prompt into a model-ready image, video, music, or\nedit prompt. Use for prompt expansion and model-specific prompt preparation when the caller\nhas a rough idea, a revision request, or a prompt that needs to be tuned for a specific\ndownstream model or generation tool.\n\nDo not use enhance_prompt for full creative-writing artifacts. Use compose_script for\nscripts, storyboards, ad concepts, trailers, and talking-head plans. Use compose_lyrics for\nsong lyrics and compose_instrumental for instrumental music structure. Do not use\nenhance_prompt to plan a multi-step workflow — use compose_workflow or\ncompose_workflow_template instead.\n\nenhance_prompt returns prompt text. The caller is responsible for handing the enhanced\nprompt to the chosen downstream generation tool (generate_image, edit_image,\ngenerate_video, animate_photo, sound_to_video, video_to_video, generate_music, etc.).",
2554
+ "baseDescription": "enhance_prompt authors a directly runnable image, video, or image-edit prompt in the native\nformat of one exact active destination model. Use it when the requested text deliverable is\nexplicitly a prompt for a named media model, including a commercial prompt. The caller must\nprovide destination_model and target_output; unknown, sunset, and omitted models fail closed.\n\nDo not use enhance_prompt for model-neutral prompts, music composition, lyrics, screenplays,\nstoryboards, treatments, ad scripts, or multi-step workflow plans. Use compose_script for\ncreative-writing artifacts, compose_lyrics or compose_instrumental for music, and\ncompose_workflow or compose_workflow_template for workflows.\n\nenhance_prompt returns prompt text only. The caller is responsible for handing it to the\nmatching downstream generation tool.",
2555
2555
  "parameterDocs": {
2556
2556
  "prompt": "The source prompt, rough idea, or prompt revision request to enhance.",
2557
- "target_output": "The kind of prompt artifact to produce. One of image_prompt, video_prompt, music_prompt, edit_prompt, model_prompt, or general_prompt.",
2558
- "destination_model": "Optional destination model selector, such as seedance2, ltx25, ltx23, wan22, flux2, gpt-image-2, or sdxl.",
2559
- "destination_tool": "Optional downstream generation tool, such as generate_image, edit_image, generate_video, animate_photo, sound_to_video, video_to_video, or generate_music.",
2560
- "prompting_type": "Optional image-prompting family when producing an image prompt. One of flux, sdxl, sd15, pony, fast, sd3, editing, or video.",
2561
- "model_title": "Optional human-readable target model name for image prompt guidance.",
2557
+ "target_output": "Required model-specific artifact kind: image_prompt, video_prompt, edit_prompt, or model_prompt. Use model_prompt only when destination_model identifies the modality.",
2558
+ "destination_model": "Required exact active model selector. Unknown and sunset models fail closed.",
2559
+ "destination_tool": "Optional matching downstream generation tool for the authored prompt.",
2560
+ "prompting_type": "Deprecated compatibility metadata. It never selects or overrides the prompt grammar; destination_model is authoritative.",
2561
+ "model_title": "Deprecated compatibility label. It never selects or overrides the prompt grammar; destination_model is authoritative.",
2562
2562
  "style_prompt": "Optional current style, brand, or prompt context to complement without repeating.",
2563
2563
  "prompt_mode": "Optional model prompt adaptation mode. One of auto, preserve, expand, compress, validate, or payload.",
2564
- "duration_seconds": "Requested runtime in seconds (1-300) when enhancing a video or music prompt.",
2564
+ "duration_seconds": "Requested runtime in seconds (1-300) when authoring a video prompt.",
2565
2565
  "aspect_ratio": "Optional target aspect ratio, such as 16:9, 9:16, 1:1, 4:5, or 21:9.",
2566
- "assets": "Optional available assets (max 12) the enhanced prompt may reference. Each entry needs media_type (image/video/audio) and may include id, label, role, and url.",
2566
+ "assets": "Optional available assets (schema max 50) the prompt may reference. The exact destination model applies smaller per-modality and total limits.",
2567
2567
  "constraints": "Optional production, brand, model, or user constraints to preserve."
2568
2568
  }
2569
2569
  },
@@ -2592,9 +2592,9 @@ const PROMPT_CONTRACTS = [
2592
2592
  },
2593
2593
  {
2594
2594
  "contractId": "compose_script_v1",
2595
- "version": "1.0.0",
2595
+ "version": "1.1.0",
2596
2596
  "toolName": "compose_script",
2597
- "baseDescription": "compose_script composes scripts, storyboards, video prompts, ad concepts, trailers, social\nshorts, campaign beats, and talking-head plans. Use for creative writing artifacts where\nthe user wants prose, scenes, beats, or a script-shaped deliverable.\n\nDo not use compose_script for song lyrics — use compose_lyrics. Do not use it for simple\nprompt expansion — use enhance_prompt. Do not use it to plan a runnable multi-step\nworkflow — use compose_workflow or compose_workflow_template.\n\ncompose_script returns a creative-writing deliverable. When the script is meant to feed a\ndownstream video tool, pair it with destination_tool/destination_model so the output is\ntuned for that pipeline; the caller still has to invoke the generation tool itself.",
2597
+ "baseDescription": "compose_script composes scripts, screenplays, storyboards, treatments, ad concepts, trailers,\nsocial shorts, campaign beats, and talking-head plans. Use it for prose, scenes, beats, or\nother script-shaped creative-writing deliverables.\n\nWhen the user explicitly asks for a directly runnable prompt for a named image or video\nmodel, use enhance_prompt instead, even when the subject is a commercial. Do not use\ncompose_script for song lyrics, instrumental composition, simple prompt authoring, or a\nrunnable multi-step workflow.\n\ncompose_script returns a creative-writing deliverable. When that deliverable will later feed\na video pipeline, destination_tool and destination_model may record the intended handoff;\nthey do not turn the result into the model's native prompt contract.",
2598
2598
  "parameterDocs": {
2599
2599
  "brief": "The creative writing brief, story idea, product concept, video idea, or revision request.",
2600
2600
  "script_type": "The kind of script or creative writing artifact to produce. One of video_prompt, screenplay, storyboard, ad_script, trailer, social_short, talking_head, campaign, or revision.",
@@ -2622,7 +2622,7 @@ const PROMPT_CONTRACTS = [
2622
2622
  "duration_seconds": "Target total duration in seconds for video-bearing plans (1-120).",
2623
2623
  "aspect_ratio": "Output aspect ratio. One of 1:1, 4:3, 3:4, 16:9, 9:16, 21:9.",
2624
2624
  "style": "Optional stylistic guidance such as \"cinematic, neon, low-key\" or \"whiteboard illustration\".",
2625
- "destination_models": "Optional preferred image/video/music model selectors (e.g. flux2, ltx25, ltx23). Each subkey is optional.",
2625
+ "destination_models": "Optional preferred image/video/music model selectors (e.g. qwen, ltx25, ltx23). Each subkey is optional.",
2626
2626
  "max_estimated_capacity_units": "Optional coarse capacity budget. If set, the planner tries to keep total estimated cost at or below this value; the API returns fits_budget=false if it cannot.",
2627
2627
  "include_audio": "When true, include a generate_music step in the plan. Defaults to false.",
2628
2628
  "return_format": "Reserved for future use; only \"json\" is supported in Phase 1. Omit if unsure."
@@ -2644,7 +2644,7 @@ const PROMPT_CONTRACTS = [
2644
2644
  "duration_seconds": "Target total duration in seconds for video-bearing plans (1-120).",
2645
2645
  "aspect_ratio": "Output aspect ratio. One of 1:1, 4:3, 3:4, 16:9, 9:16, 21:9.",
2646
2646
  "style": "Optional stylistic guidance such as \"cinematic, neon, low-key\" or \"whiteboard illustration\".",
2647
- "destination_models": "Optional preferred image/video/music model selectors (e.g. flux2, ltx25, ltx23). Each subkey is optional.",
2647
+ "destination_models": "Optional preferred image/video/music model selectors (e.g. qwen, ltx25, ltx23). Each subkey is optional.",
2648
2648
  "max_estimated_capacity_units": "Optional coarse capacity budget. The planner returns fits_budget=false if it cannot fit under the cap.",
2649
2649
  "include_audio": "When true, include a generate_music step in the example plan. Defaults to false.",
2650
2650
  "return_format": "Reserved for future use; only \"json\" is supported in Phase 2. Omit if unsure.",
@@ -2690,23 +2690,6 @@ export function createPublicSkillDefaultContractRuntime(input = {}) {
2690
2690
  });
2691
2691
  }
2692
2692
 
2693
- import { resolveLtx25WorkflowModelForQuality as resolveUpstreamLtx25WorkflowModelForQuality, selectDefaultVideoModel as selectUpstreamDefaultVideoModel, } from '@sogni-ai/sogni-intelligence-client/public-skill-runtime';
2694
- function forceLtx25DistilledModel(modelId) {
2695
- return modelId?.startsWith('ltx25-') && modelId.endsWith('_dev')
2696
- ? `${modelId.slice(0, -'_dev'.length)}_distilled`
2697
- : modelId;
2698
- }
2699
- /**
2700
- * Keep every public LTX 2.5 quality tier on the release-validated Distilled
2701
- * workflows even while older intelligence-client installations still map Pro
2702
- * to the unpublished Dev recipe.
2703
- */
2704
- export function resolveLtx25WorkflowModelForQuality(workflow, qualityTier) {
2705
- return forceLtx25DistilledModel(resolveUpstreamLtx25WorkflowModelForQuality(workflow, qualityTier));
2706
- }
2707
- export function selectDefaultVideoModel(workflow, opts = {}, config) {
2708
- return forceLtx25DistilledModel(selectUpstreamDefaultVideoModel(workflow, opts, config));
2709
- }
2710
2693
  // Moved to @sogni-ai/sogni-intelligence-client/skill-runtime-source in Phase 8.4 follow-up.
2711
2694
  // This file is kept as a thin re-export so existing internal `testing/`
2712
2695
  // callers keep working. New code should import from the public mid-tier:
@@ -2,7 +2,7 @@
2
2
  "id": "sogni-creative-agent-skill",
3
3
  "name": "Sogni Creative Agent Skill — Image, Video & Music Generation",
4
4
  "description": "Agent skill and CLI for Sogni AI image, video, and music generation.",
5
- "version": "3.33.0",
5
+ "version": "3.34.0",
6
6
  "skills": [
7
7
  "."
8
8
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sogni-ai/sogni-creative-agent-skill",
3
- "version": "3.33.0",
3
+ "version": "3.34.0",
4
4
  "description": "Sogni Creative Agent Skill: agent skill and CLI for Sogni AI image, video, and music generation.",
5
5
  "type": "module",
6
6
  "main": "sogni-agent.mjs",
@@ -95,13 +95,13 @@
95
95
  "sogni-agent.mjs"
96
96
  ],
97
97
  "dependencies": {
98
- "@sogni-ai/sogni-intelligence-client": "3.22.0",
98
+ "@sogni-ai/sogni-intelligence-client": "3.23.2",
99
99
  "execa": "^9.6.1",
100
100
  "json5": "^2.2.3",
101
101
  "sharp": "^0.34.5"
102
102
  },
103
103
  "overrides": {
104
- "@sogni-ai/sogni-client": "5.18.2"
104
+ "@sogni-ai/sogni-client": "5.19.2"
105
105
  },
106
106
  "openclaw": {
107
107
  "extensions": [
@@ -182,16 +182,29 @@ When `--video -m seedance2`, `-m seedance2-mini`, `-m seedance2-fast`, or
182
182
  `validateSeedanceReferenceCounts()` in
183
183
  `@sogni-ai/sogni-intelligence-client/tools`).
184
184
 
185
- Combining `--ref` / `--ref-end` with `-c/--context` on Seedance is rejected
186
- client-side with an error pointing at the correct mode. In CLI direct-gen mode,
185
+ Combining native `--ref` / `--ref-end` frame anchors with any loose image,
186
+ video, or audio reference on Seedance is rejected client-side with an error
187
+ pointing at the correct mode. The typed `--workflow ia2v` path is the explicit
188
+ exception: there, `--ref` is sent as a loose `@Image` reference beside
189
+ `--ref-audio`, not as `first_frame`; `--ref-end` remains invalid. In CLI direct-gen mode,
187
190
  local `-c/--context` images and the primary `--ref-audio` / `--ref-video` are
188
191
  uploaded to Sogni media storage automatically and forwarded as HTTPS URLs; only
189
192
  *additional* `--ref-audio` / `--ref-video` entries beyond the first must already
190
193
  be HTTPS URLs (use `--api-chat` / `--durable-chat` when you need to attach
191
194
  several local audio or video files in one request). Seedance accepts public
192
195
  HTTPS image, video, and audio references that pass the CLI URL safety checks;
193
- localhost and private-network URLs are rejected before forwarding. Audio
194
- references must be paired with an image or video reference.
196
+ localhost and private-network URLs are rejected before forwarding. Seedance 2.0
197
+ audio references must be paired with an image or video reference; Seedance 2.5
198
+ `reference` accepts audio by itself.
199
+
200
+ For direct Seedance 2.5 loose-reference operations, use
201
+ `--seedance-task-type reference|edit|extend`. Edit and extend require
202
+ `--ref-video`, reject `--ref`/`--ref-end` frame anchors, and inherit the source
203
+ video's aspect ratio. Edit requires `--duration` equal to the source duration;
204
+ extend uses the selected 4-30 second continuation duration. On hosted semantic
205
+ tool surfaces, express the same intent with `generate_video`, `video_to_video`,
206
+ or `extend_video`; do not pass the direct SDK's `seedanceTaskType` routing field
207
+ as a hosted tool argument.
195
208
 
196
209
  ## Models, replays, and contract debugging
197
210
 
@@ -12,12 +12,13 @@ substitute a generic image prompt or another model's format.
12
12
  | --- | --- | --- |
13
13
  | SD 1.5 | Weighted or comma-separated tags; quality/medium, subject, environment, lighting/camera | `positive_prompt:` plus `negative_prompt:` |
14
14
  | SDXL | Hybrid natural language plus selective comma-separated style/quality terms; Pony variants start with their score tags | `positive_prompt:` plus `negative_prompt:` |
15
- | FLUX / Chroma | One coherent natural-language visual description; exact visible text in quotes; no SD score/tag soup | Prompt text only; FLUX.2 has no negative-prompt field |
15
+ | FLUX.1 Schnell | One concise natural-language visual description centered on the subject, composition, light, and style; no SD score/tag soup | Prompt text only |
16
+ | Chroma 1 / v.46 / Detail | One coherent natural-language visual description; exact visible text in quotes; no SD score/tag soup | Prompt text only |
16
17
  | Krea 2 / Krea 2 Turbo | Dense, fluent rich caption emphasizing observable composition, palette, light, texture, and atmosphere; no SD weighting syntax | Prompt text only |
17
18
  | Qwen Image 2512 | Detailed natural-language description with explicit spatial relationships and exact quoted typography | `positive_prompt:` plus `negative_prompt:` |
18
19
  | Z-Image | Compact instruction-aware natural-language caption | Foundation model: positive plus negative; Turbo: prompt text only |
19
20
  | GPT Image 2 | Direct natural-language creative direction with explicit layout, hierarchy, and exact quoted copy | Prompt text only |
20
- | Qwen / Krea / FLUX / GPT edits | A direct delta instruction: what changes, what remains fixed, and the ordered role of each reference | Prompt text only |
21
+ | Qwen / Krea / GPT edits | A direct delta instruction: what changes, what remains fixed, and the ordered role of each reference | Prompt text only |
21
22
 
22
23
  The two-field envelope is exact: return two non-empty single lines in this
23
24
  order and nothing else:
@@ -35,10 +36,10 @@ Markdown fence, preamble, explanation, or render offer.
35
36
  - Treat a model selector as an exact capability declaration, not a name to
36
37
  fuzzy-match into a convenient family. Every selector exposed by
37
38
  `generate_image` and `edit_image` must resolve in the shared registry.
38
- - A family can have different operation profiles. `flux2` and
39
- `gpt-image-2` support registered generation and edit contracts. A
40
- generation-only selector such as `flux1-krea` or `krea-2-turbo` must not
41
- silently accept an edit request.
39
+ - A family can have different operation profiles. `gpt-image-2` supports
40
+ registered generation and edit contracts. A generation-only selector such
41
+ as `flux1-schnell-fp8` or `krea-2-turbo` must not silently accept an edit
42
+ request.
42
43
  - Use `qwen` / `qwen-lightning` as edit selectors and
43
44
  `qwen-2512` / `qwen-2512-lightning` as generation selectors.
44
45
  - Use `krea-identity-edit` or
@@ -58,4 +59,3 @@ Primary references: [FLUX prompting](https://docs.bfl.ai/guides/prompting_unifie
58
59
  [Qwen Image Edit 2511](https://huggingface.co/Qwen/Qwen-Image-Edit-2511),
59
60
  [Z-Image Turbo](https://huggingface.co/Tongyi-MAI/Z-Image-Turbo), and
60
61
  [Stability API](https://platform.stability.ai/docs/api-reference).
61
-
@@ -75,8 +75,8 @@ sogni-agent -m krea2_identity_edit_v1_2 -c ./portrait.jpg \
75
75
 
76
76
  The hosted `generate_image` and `edit_image` tools take the same two arrays under
77
77
  `loras` and `loraStrengths`. On `edit_image` they apply only when the model is
78
- `krea-identity-edit` or `dark-beast-krea2-identity-edit`; Qwen, Flux.2, and GPT
79
- Image 2 load no LoRAs and the ids are dropped.
78
+ `krea-identity-edit` or `dark-beast-krea2-identity-edit`; Qwen and GPT Image 2
79
+ load no LoRAs and the ids are dropped.
80
80
 
81
81
  - Up to 8 LoRAs per render — read `constraints.maxPerRequest` rather than
82
82
  assuming; the render pipeline rejects anything over it at submit.
@@ -267,11 +267,23 @@ no negative prompt and no ControlNet.
267
267
  - **Prompting**: the same `@Image1` / `@Video1` / `@Audio1` loose-reference
268
268
  grammar and the same mutually exclusive dedicated-frame vs loose-reference
269
269
  modes as Seedance 2.0.
270
-
271
- The pinned `@sogni-ai/sogni-intelligence-client` 3.15.1 runtime recognizes
272
- `seedance-2-5`, so the direct CLI applies Seedance's fixed 24 fps, 4-30 s
273
- duration window, larger reference caps, reference-mode exclusivity, and HTTPS
274
- reference forwarding before dispatch.
270
+ - **Task contract**: Seedance 2.5 first/last-frame, edit, and extend requests
271
+ use adaptive output ratio. The CLI sends typed task metadata so
272
+ `seedance2-5-v2v` defaults to edit; pass `--seedance-task-type extend` for
273
+ continuation or `reference` when a video is only a loose creative reference.
274
+ Edit requires `--duration` equal to the source video's duration. Extend uses
275
+ the requested 4-30 second continuation duration. For edit/extend, select only
276
+ `--target-resolution 480|720`; the provider inherits `@Video1`'s aspect ratio.
277
+ Untyped automatic classification is rejected before billing because it can
278
+ fail asynchronously after inferring the task.
279
+ - **Audio-only reference**: unlike 2.0, Seedance 2.5 accepts standalone audio as
280
+ its only loose reference.
281
+
282
+ The pinned `@sogni-ai/sogni-intelligence-client` 3.23.2 runtime recognizes
283
+ `seedance-2-5`, and the package override pins `@sogni-ai/sogni-client` 5.19.2
284
+ for typed task transport. The direct CLI applies Seedance's fixed 24 fps,
285
+ 4-30 s duration window, larger reference caps, reference-mode exclusivity, and
286
+ HTTPS reference forwarding before dispatch.
275
287
 
276
288
  ## HappyHorse 1.1 models
277
289
 
@@ -102,8 +102,8 @@ tips, explain the format, offer to generate the video, or ask a follow-up
102
102
  question after the contract. Those additions make the text invalid as direct
103
103
  H3 input.
104
104
 
105
- Applies to standard `minimax-h3` / `minimax-h3-t2v`, `minimax-h3-i2v`, and
106
- `minimax-h3-flf2v`; their 4-step `minimax-h3-turbo`,
105
+ Applies to standard `minimax-h3` / `minimax-h3-t2v`, `minimax-h3-i2v` for both
106
+ opening-frame I2VA and closing-frame L2VA, and `minimax-h3-flf2v`; their 4-step `minimax-h3-turbo`,
107
107
  `minimax-h3-i2v-turbo`, and `minimax-h3-flf2v-turbo` variants; and—with its own
108
108
  six-field contract—to standard `minimax-h3-r2v` and `minimax-h3-r2v-turbo`. The exact worker
109
109
  ids are `minimax-h3-fl2va-fp8_{t2v,i2v,flf2v}` with an optional `_turbo`
@@ -112,7 +112,7 @@ suffix, plus `minimax-h3-ref2va-fp8_r2v` and `minimax-h3-ref2va-fp8_r2v_turbo`.
112
112
  before writing an r2v prompt.
113
113
 
114
114
  This guidance follows MiniMax's official H3 prompt-writing skill from
115
- [MiniMax-H3 commit 35491cd](https://github.com/MiniMax-AI/MiniMax-H3/tree/35491cdba2adfe62a510f725e8619f8e58783ea2/skills/h3-prompt-writing).
115
+ [MiniMax-H3 commit d21241f](https://github.com/MiniMax-AI/MiniMax-H3/tree/d21241f0a4b3acbb34c97dae47fa417b7065e438/skills/h3-prompt-writing).
116
116
 
117
117
  ### Fixed model facts
118
118
 
@@ -158,7 +158,7 @@ integer the user asked for:
158
158
  | 12 | 294 | 12.25 s |
159
159
  | 15 | 362 | 15.08 s |
160
160
 
161
- ### Base and Turbo contract: T2V, I2V, and FLF2V
161
+ ### Base and Turbo contract: T2V, I2V, L2V, and FLF2V
162
162
 
163
163
  After the mode-specific preamble described below, write exactly these three
164
164
  fields in this order:
@@ -188,8 +188,11 @@ the language and exact words:
188
188
  The record-store owner with a warm, gravelly voice (S1) says: <d>[English] I kept this one behind the counter for you.</d>
189
189
  ```
190
190
 
191
- Do not translate, paraphrase, or clean up the user's dialogue. Use a compound
192
- ID such as `(S1,S2)` only when already-numbered speakers vocalize together.
191
+ Do not translate, paraphrase, or clean up the user's dialogue. If the user
192
+ explicitly requests speaking, dialogue, lyrics, or a vocal performance but
193
+ supplies no words, author one concise line that realizes that request. If there
194
+ is no vocal intent, do not invent speech. Use a compound ID such as `(S1,S2)`
195
+ only when already-numbered speakers vocalize together.
193
196
 
194
197
  ### Worked example — text-to-video
195
198
 
@@ -248,9 +251,11 @@ The two children (S1,S2) shout together, <d>[English] Wait for us!</d>
248
251
  kept stable across every shot. A character who never vocalizes gets no ID. Two
249
252
  or more already-numbered speakers vocalizing together use a compound ID such
250
253
  as `(S1,S2)`.
251
- - Supported dialogue languages: Arabic, Chinese, English, French, German,
252
- Italian, Japanese, Korean, Portuguese, Russian, Spanish. The tag is the
253
- English language name in square brackets, e.g. `<d>[Japanese] …</d>`.
254
+ - MiniMax documents stable dialogue support for Arabic, Chinese, English,
255
+ French, German, Italian, Japanese, Korean, Portuguese, Russian, and Spanish,
256
+ with varying support for additional languages. This list is advisory, not a
257
+ validation allowlist: preserve the user's actual language. Write its language
258
+ name in square brackets, e.g. `<d>[Japanese] …</d>`.
254
259
  - **Voiceover** uses the exact phrase `says in an off-screen voiceover`, and the
255
260
  `<d>` block is followed by a statement that the on-screen character's lips
256
261
  stay closed:
@@ -266,6 +271,23 @@ The two children (S1,S2) shout together, <d>[English] Wait for us!</d>
266
271
  shot`, `remains audible across the transition`).
267
272
  - `<cutoff>` marks speech that is truncated by the end of the video.
268
273
 
274
+ **Tokenizer tokens versus prompt markup.** The open-weights H3 tokenizer also
275
+ reserves the learned tokens `<d>`, `</d>`, `<|cutoff|>`,
276
+ `<|lyrics_start|>`, `<|lyrics_end|>`, `<|caption_start|>`, and
277
+ `<|caption_end|>`. Inference integrations must register all seven exactly as
278
+ released. Prompt authors should still follow MiniMax's public writing guide:
279
+ emit `<d>…</d>`, `<scenetrans>`, and the plain `<cutoff>` spelling described
280
+ above. The vertical-bar lyrics, caption, and cutoff tokens are tokenizer
281
+ internals, not documented author-facing prompt markup. Never "repair" them by
282
+ globally deleting pipe characters. Rewrite the meaning: caption boundaries and
283
+ their contents become exact visible text in English double quotes; lyrics
284
+ boundaries become an ordinary `<d>[Language] exact words</d>` block with the
285
+ singer and delivery outside it; and `<|cutoff|>` becomes plain `<cutoff>`.
286
+ Plain `<caption_start>`, `<caption_end>`, `<lyrics_start>`, and `<lyrics_end>`
287
+ are not valid substitutes. If a generated draft still leaks one of these forms,
288
+ warn and make one bounded semantic repair attempt, then keep the best non-empty
289
+ structured prompt rather than blocking generation.
290
+
269
291
  **Shot markers and the camera vocabulary.** In the IR format, `[Shot 1]` opens
270
292
  with the overall style and initial composition and takes no timestamp; every
271
293
  later shot opens with a strictly increasing cut time — `[Shot 2] At 00:03.500,
@@ -297,7 +319,7 @@ dynamics. `N/A` is the schema's token for "nothing here" — used in
297
319
  `non_diegetic_music` for no score, and in `overall_soundscape` only for a
298
320
  deliberately silent video.
299
321
 
300
- **Alignment instruction lines (i2v / flf2v only).** These exact preambles pin
322
+ **Alignment instruction lines (i2v / l2v / flf2v only).** These exact preambles pin
301
323
  reference images to the target timeline. They are mandatory for those modes and
302
324
  must be the first line, followed by one blank line. T2V has no preamble.
303
325
 
@@ -307,6 +329,17 @@ Image-to-video (`minimax-h3-i2v` or `minimax-h3-i2v-turbo`, one `--ref`):
307
329
  For the target video, at 0.00 seconds into the target video, <Picture 1> (from [Shot 1]) is fully referenced.
308
330
  ```
309
331
 
332
+ Last-frame-only video (`minimax-h3-i2v` or `minimax-h3-i2v-turbo`, one
333
+ `--ref-end`; there is deliberately no separate L2V selector):
334
+
335
+ ```text
336
+ How the reference pictures align with the target video — <Picture 1> (from [Shot N]) aligns with the S.SS-second mark of the target video.
337
+ ```
338
+
339
+ `N` is the actual final shot. Infer a plausible earlier state and describe the
340
+ continuous action, object state, camera, light, and composition converging on
341
+ the supplied closing frame at the snapped `S.SS` endpoint.
342
+
310
343
  First frame → last frame (`minimax-h3-flf2v` or
311
344
  `minimax-h3-flf2v-turbo`, `--ref` plus `--ref-end`). Note the bare `Picture 1`
312
345
  and `Shot 1` with **no** angle or square brackets, and the em dash (`—`) with a
@@ -325,7 +358,9 @@ transition), and `S.SS` is the effective duration to exactly two decimal places
325
358
  `minimax-h3-r2v` conditions on a whole **reference set** rather than one or two
326
359
  locked frames: up to **9 reference images**,
327
360
  **3 reference videos** (24 fps, 2–15 s, each with an optional soundtrack) and
328
- **3 standalone audio clips**, **12 files maximum in total**. It runs a separate
361
+ **3 standalone audio clips** (2–15 s each), **12 files maximum in total**.
362
+ Reference-video duration totals may not exceed 15 seconds, and standalone
363
+ reference-audio duration totals may not exceed 15 seconds. It runs a separate
329
364
  ref2va checkpoint, so it is never inferred — it must be chosen by name with
330
365
  direct CLI `-m minimax-h3-r2v` or the `generate_video` tool's
331
366
  `videoModel="minimax-h3-r2v"` (including callers such as Sogni Chat). Direct CLI
@@ -355,8 +390,12 @@ non_diegetic_music:
355
390
  ```
356
391
 
357
392
  `subject_definitions` assigns stable labels and roles to every reused subject or
358
- asset. `summary` begins with the applicable bracketed task type, such as
359
- `[reference generation + audio reference]`. `retention_analysis` gives one line
393
+ asset. `summary` begins with one or more exact task types: `keyframe completion`,
394
+ `reference generation`, `video editing`, `video continuation`, `audio reuse`,
395
+ or `audio reference`. Join multiple types with exactly ` + ` and never repeat
396
+ one. Choose tasks from the reference's assigned job, not merely because a file
397
+ is attached. A direct video-editing summary begins its body exactly `The target
398
+ video is an edited version of <Video 1>.` `retention_analysis` gives one line
360
399
  per label using the official relationship values, such as `fully_preserved`,
361
400
  `partially_preserved`, `attribute_transfer`, or `weak_reference` for visual
362
401
  content and `fully_copy`, `partially_copy`, `reference`, or `weak_reference` for
@@ -413,6 +452,22 @@ N/A
413
452
  Trim definitions for references that were not attached; unresolved labels are
414
453
  invalid.
415
454
 
455
+ Sogni's current agent-facing R2V attachments are loose references. A prompt may
456
+ borrow a clip's motion, pacing, or temporal structure, but must not claim
457
+ `video editing` or `video continuation` unless the caller actually supplies a
458
+ typed transformation relationship. Use I2VA, L2VA, or FL2VA when an endpoint
459
+ must be locked.
460
+
461
+ For voice references, bind the voice to the speaking subject by reusing that
462
+ subject's `(Sx)` in `subject_definitions`; do not put the speaker ID in
463
+ `retention_analysis`. A timbre/rhythm/emotion/delivery reference must not import
464
+ the source recording's words. If the user explicitly asks to reuse or reperform
465
+ reference speech, preserve its words and language and mark unintelligible spans
466
+ `[unclear]` rather than guessing. A verbal cue embedded in copied background
467
+ music can cite `<Audio N>` without an invented speaker ID. Put copied ambience
468
+ and effects in `overall_soundscape`, audience-only score in
469
+ `non_diegetic_music`, and use both fields when the source contains both.
470
+
416
471
  ### Agent-ready H3 command shapes
417
472
 
418
473
  ```bash
@@ -422,12 +477,16 @@ sogni-agent -q --video -m minimax-h3 --duration 10 -w 1344 -h 768 -o ./video.mp4
422
477
  # Image-to-video from one first frame (portrait)
423
478
  sogni-agent -q --video -m minimax-h3-i2v --ref ./first.png --duration 8 -w 768 -h 1344 -o ./video.mp4 "<I2V preamble plus three-field H3 prompt>"
424
479
 
480
+ # Last-frame-only L2VA reuses the I2V selector
481
+ sogni-agent -q --video -m minimax-h3-i2v --ref-end ./last.png --duration 8 -w 768 -h 1344 -o ./video.mp4 "<L2V preamble plus three-field H3 prompt>"
482
+
425
483
  # First frame -> last frame transition
426
484
  sogni-agent -q --video -m minimax-h3-flf2v --ref ./first.png --ref-end ./last.png --duration 8 -w 1344 -h 768 -o ./video.mp4 "<FLF2V preamble plus three-field H3 prompt>"
427
485
 
428
- # Turbo uses the same T2V/I2V/FLF2V prompt contracts
486
+ # Turbo uses the same T2V/I2V/L2V/FLF2V prompt contracts
429
487
  sogni-agent -q --video -m minimax-h3-turbo --duration 8 -w 1344 -h 768 -o ./video.mp4 "<three-field H3 prompt>"
430
488
  sogni-agent -q --video -m minimax-h3-i2v-turbo --ref ./first.png --duration 8 -w 768 -h 1344 -o ./video.mp4 "<I2V preamble plus three-field H3 prompt>"
489
+ sogni-agent -q --video -m minimax-h3-i2v-turbo --ref-end ./last.png --duration 8 -w 768 -h 1344 -o ./video.mp4 "<L2V preamble plus three-field H3 prompt>"
431
490
  sogni-agent -q --video -m minimax-h3-flf2v-turbo --ref ./first.png --ref-end ./last.png --duration 8 -w 1344 -h 768 -o ./video.mp4 "<FLF2V preamble plus three-field H3 prompt>"
432
491
 
433
492
  # Reference-to-video (reference order defines the prompt ordinals)
@@ -475,6 +534,12 @@ sogni-agent --video -m seedance2 --duration 8 "A polished product reveal with na
475
534
 
476
535
  # Seedance 2.5 (4-30s single clips, 480p/720p only — the one Seedance that renders past 15s in one call)
477
536
  sogni-agent --video -m seedance2-5 --duration 24 "A continuous one-take product story with native ambient sound"
537
+
538
+ # Seedance 2.5 edit (duration must match @Video1; aspect ratio is inherited)
539
+ sogni-agent --video -m seedance2-5-v2v --seedance-task-type edit --ref-video source.mp4 --duration 8 --target-resolution 720 "Edit @Video1 while preserving its subject and timing"
540
+
541
+ # Seedance 2.5 extension (duration is the new continuation length)
542
+ sogni-agent --video -m seedance2-5-v2v --seedance-task-type extend --ref-video source.mp4 --duration 8 --target-resolution 720 "Extend @Video1 after its ending"
478
543
  ```
479
544
 
480
545
  Prefer `.webm`, `.m4a`, or `.mp3` voice clips. Local `.wav` clips are normalized
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "@sogni-ai/sogni-intelligence-client": "3.22.0",
6
+ "@sogni-ai/sogni-intelligence-client": "3.23.2",
7
7
  "execa": "^9.6.1",
8
8
  "json5": "^2.2.3",
9
9
  "sharp": "^0.34.5"
@@ -27,7 +27,7 @@ Keep a session-level manifest of every uploaded or generated asset and translate
27
27
  | Model id | Image | Video | Audio |
28
28
  |---|---|---|---|
29
29
  | `seedance` (incl. `seedance2`, `seedance2-mini`, `seedance2-fast`) | `@Image1` | `@Video1` | `@Audio1` |
30
- | `gpt-image-2`, `flux*` | `Image 1` | `Video 1` | `Audio 1` |
30
+ | `gpt-image-2` | `Image 1` | `Video 1` | `Audio 1` |
31
31
  | `ltx23`, `wan`, `qwen-image-edit` | `context_image_0` (0-indexed) | `context_video_0` | `context_audio_0` |
32
32
 
33
33
  ## Constraints
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: image_generation
3
- description: Text-to-image synthesis with Z-Image, Krea 2, Dark Beast Krea 2, Flux, Qwen, and GPT Image 2 models.
3
+ description: Text-to-image synthesis with Z-Image, Krea 2, Dark Beast Krea 2, FLUX.1 Schnell, Chroma, Qwen, and GPT Image 2 models.
4
4
  always_loaded: false
5
5
  tool_names:
6
6
  - generate_image
@@ -8,7 +8,7 @@ tool_names:
8
8
 
9
9
  # Image generation
10
10
 
11
- Text-to-image synthesis with the current Sogni image stack (Z-Image, Krea 2, Dark Beast Krea 2, Flux, Qwen, and GPT Image 2). Use when the user wants a new image generated from a prompt with no source asset.
11
+ Text-to-image synthesis with the current Sogni image stack (Z-Image, Krea 2, Dark Beast Krea 2, FLUX.1 Schnell, Chroma, Qwen, and GPT Image 2). Use when the user wants a new image generated from a prompt with no source asset.
12
12
 
13
13
  ## Tools
14
14
 
@@ -16,7 +16,7 @@ Text-to-image synthesis with the current Sogni image stack (Z-Image, Krea 2, Dar
16
16
 
17
17
  ## Prompting
18
18
 
19
- - Use natural-language descriptions (subject, setting, composition, lighting, style) for the next-gen models (Krea 2, Z-Image, Flux, Qwen) rather than keyword lists.
19
+ - Use natural-language descriptions (subject, setting, composition, lighting, style) for Krea 2, Z-Image, FLUX.1 Schnell, Chroma, and Qwen rather than keyword lists.
20
20
  - Krea 2 favors long, detailed prompts but also handles short ones; to render text in the image, wrap the exact words in quotes (e.g. a sign reading "OPEN").
21
21
  - Use `-m dark_beast_krea2_fp8` when the user explicitly requests Dark Beast Krea 2 or the uncensored community Krea 2 fine-tune.
22
22
  - The app applies model-specific prompt-enhancement automatically — pass the user's intent faithfully and avoid empty quality-booster spam.