@sogni-ai/sogni-intelligence-client 4.19.0 → 4.20.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.
Files changed (51) hide show
  1. package/dist/contracts/data/gatingPolicies.d.ts.map +1 -1
  2. package/dist/contracts/data/gatingPolicies.js +7 -4
  3. package/dist/contracts/data/gatingPolicies.js.map +1 -1
  4. package/dist/contracts/data/promptContracts.d.ts.map +1 -1
  5. package/dist/contracts/data/promptContracts.js +51 -28
  6. package/dist/contracts/data/promptContracts.js.map +1 -1
  7. package/dist/media/index.d.ts +2 -0
  8. package/dist/media/index.d.ts.map +1 -1
  9. package/dist/media/index.js +2 -0
  10. package/dist/media/index.js.map +1 -1
  11. package/dist/media/personaCharacterSheet.d.ts +80 -0
  12. package/dist/media/personaCharacterSheet.d.ts.map +1 -0
  13. package/dist/media/personaCharacterSheet.js +177 -0
  14. package/dist/media/personaCharacterSheet.js.map +1 -0
  15. package/dist/media/personaReferences.d.ts +70 -0
  16. package/dist/media/personaReferences.d.ts.map +1 -0
  17. package/dist/media/personaReferences.js +206 -0
  18. package/dist/media/personaReferences.js.map +1 -0
  19. package/dist/public-skill-runtime/index.d.ts.map +1 -1
  20. package/dist/public-skill-runtime/index.js +2 -1
  21. package/dist/public-skill-runtime/index.js.map +1 -1
  22. package/dist/tools/definitions/animate-photo/definition.js +2 -2
  23. package/dist/tools/definitions/animate-photo/definition.js.map +1 -1
  24. package/dist/tools/definitions/generate-speech/definition.js +4 -4
  25. package/dist/tools/definitions/generate-speech/definition.js.map +1 -1
  26. package/dist/tools/definitions/generate-video/definition.js +3 -3
  27. package/dist/tools/definitions/generate-video/definition.js.map +1 -1
  28. package/dist/tools/shared/seedancePolicyErrors.d.ts.map +1 -1
  29. package/dist/tools/shared/seedancePolicyErrors.js +62 -10
  30. package/dist/tools/shared/seedancePolicyErrors.js.map +1 -1
  31. package/dist-esm/contracts/data/gatingPolicies.js +7 -4
  32. package/dist-esm/contracts/data/gatingPolicies.js.map +1 -1
  33. package/dist-esm/contracts/data/promptContracts.js +51 -28
  34. package/dist-esm/contracts/data/promptContracts.js.map +1 -1
  35. package/dist-esm/media/index.js +2 -0
  36. package/dist-esm/media/index.js.map +1 -1
  37. package/dist-esm/media/personaCharacterSheet.js +166 -0
  38. package/dist-esm/media/personaCharacterSheet.js.map +1 -0
  39. package/dist-esm/media/personaReferences.js +187 -0
  40. package/dist-esm/media/personaReferences.js.map +1 -0
  41. package/dist-esm/public-skill-runtime/index.js +2 -1
  42. package/dist-esm/public-skill-runtime/index.js.map +1 -1
  43. package/dist-esm/tools/definitions/animate-photo/definition.js +2 -2
  44. package/dist-esm/tools/definitions/animate-photo/definition.js.map +1 -1
  45. package/dist-esm/tools/definitions/generate-speech/definition.js +4 -4
  46. package/dist-esm/tools/definitions/generate-speech/definition.js.map +1 -1
  47. package/dist-esm/tools/definitions/generate-video/definition.js +3 -3
  48. package/dist-esm/tools/definitions/generate-video/definition.js.map +1 -1
  49. package/dist-esm/tools/shared/seedancePolicyErrors.js +62 -10
  50. package/dist-esm/tools/shared/seedancePolicyErrors.js.map +1 -1
  51. package/package.json +2 -2
@@ -18,7 +18,7 @@ export const definition = {
18
18
  type: "function",
19
19
  function: {
20
20
  name: "animate_photo",
21
- description: 'Animate a photo into video with motion, audio, and dialogue using LTX 2.5 by default, LTX 2.3 as rollback, or WAN 2.2. Do NOT use this tool for seedance2, seedance2-mini, seedance2-mini-uncensored, seedance2-5, or seedance2-5-uncensored. Seedance media references — including Seedance 2.5 first-and-last-frame requests — must go through generate_video with referenceImageIndices/referenceVideoIndices/referenceAudioIndices and @Image/@Video/@Audio role text in the prompt; for seamless-loop Seedance requests with one uploaded image, the prompt should anchor it as both the first frame and last frame. LTX/WAN NOTE: uploaded audio files are not loose references for ltx25/ltx23/wan22; use sound_to_video when uploaded audio is the primary sync target. DANCE REQUESTS ("make them dance", "do the X dance"): use dance_montage — NOT this tool. LTX 2.5 and LTX 2.3 generate audio natively — describe dialogue and ambient sounds directly in the prompt (do NOT pre-generate audio for this tool). If the user provides exact speech, include it in double quotes; if they only imply speech, describe the performance and voice without inventing quoted words. Avoid placeholders such as "while speaking", "dialogue begins", "explaining", or "final line lands". PERSONA VOICE: Only when the user explicitly asks to use/clone a registered persona voice clip, call resolve_personas first, then set voicePersonaName to select which persona\'s voice clip to use. Do not set voicePersonaName for ordinary character dialogue or inferred voices; describe those voices in the prompt for native LTX audio. For cross-persona narration (e.g. David narrates a video of Aleyna), resolve both personas and set voicePersonaName to the narrator only if that registered voice was requested. Persona voice requires ltx23 because LTX 2.5 has no compatible ID-LoRA and WAN 2.2 does not support voice identity. PERSONA PIPELINE: For persona videos, ensure an image of the persona exists before calling animate_photo. The standard pipeline is: resolve_personas → edit_image → animate_photo. If a suitable persona image already exists (user uploaded one, a prior edit_image/generate_image result, OR the user explicitly says to use the Persona image/reference photo directly), skip edit_image and animate directly. After resolve_personas, this tool can animate the injected persona image directly when that explicit direct-use instruction is given. Auto-uses the latest result image (from any prior tool) unless sourceImageIndex is set. Supports start-frame (default), end-frame, and start+end interpolation modes for LTX/WAN — ask the user which frame role their image should play if they mention "end frame", "last frame", or provide two images. FIRST+LAST FRAME WORKFLOW: When the user wants a non-Seedance video using two different scenes as start and end frames, prefer generating both images in a single generate_image/edit_image call with numberOfVariations=2 and Dynamic Prompts, then call animate_photo with frameRole="both", sourceImageIndex=0, endImageIndex=1. If the user explicitly wants separately created frame assets, preserve that staged instruction while keeping indices correct. In frameRole="both", the handler automatically inspects both images and upgrades the base prompt into a scene-aware smooth transition prompt, so your prompt should state the desired transition style, action, dialogue, and audio rather than trying to list every visible object. If the request is vague, analyze the image first and suggest 2-3 specific animation ideas tailored to what you see. Call once you have clear creative intent. N-VIDEOS PATTERN: Avoid sequential animate_photo calls for N outputs. For a single fixed source/end frame where only prompt text varies, use sourceImageIndex + numberOfVariations=N + one Dynamic Prompt branch in prompt so Sogni submits one project with multiple jobs. If the user explicitly asks for Dynamic Prompt or Dynamic Template syntax, prefer this one-project path whenever every output uses the same source/end frames and shared settings, even if they also ask to stitch the completed clips afterward. Use sourceImageIndices/prompts for multi-segment stitched non-Seedance video, different source/end assets, different audio windows, different durations/dimensions, isolated retry lifecycle, or other per-output parameters. sourceImageIndices supports up to 16 entries; there is NO 3-clip cap, so do not split one planned batch into "first 3" and "remaining" calls. For a dialogue-heavy total-duration request with no explicit per-clip duration, prefer 15-second clips on ltx25 by default (or ltx23 rollback) (30s total = 2 clips × 15s) and 10-second clips on wan22 (60s total on wan22 = 6 clips × 10s; do NOT pick 4 clips × 15s on wan22 — the wan22 worker rejects clips longer than 10s). Multi-source flavors: (A) SHARED CONTENT — when all N clips have the same dialogue/motion but different source visuals (different scenes, outfits, environments, persona looks), first generate N distinct images via ONE edit_image/generate_image call with numberOfVariations=N + Dynamic Prompts {|}, then call animate_photo with sourceImageIndices=[start..start+N-1] and a single shared `prompt`. If all segments intentionally reuse the primary uploaded image and only prompt text varies, use sourceImageIndex=-1, frameRole="both" if requested, endImageIndex=-1 if requested, numberOfVariations=N, and one Dynamic Prompt branch in prompt. Each branch option must be a complete natural-language motion prompt; do not include "clip N", source-frame boilerplate, "overall request context", or instructions to follow the user request. For a long scripted/dialogue/storyboard video from a single supplied/uploaded image where each segment needs isolated exact dialogue or per-segment wiring, use sourceImageIndices=[-1,-1,...] and per-clip prompts. Only set frameRole="both" and endImageIndex=-1 when the user explicitly says the same uploaded/source/original image should be both the first and last frame of every segment. If the user requests generated source images first, honor that image stage, then animate the generated result indices. When using generated scene keyframes and each clip should begin and end on its own scene image for stitching, call animate_photo with frameRole="both" and sourceImageIndices=[start..end] but OMIT endImageIndex; do not set endImageIndex=-1 unless every source is the uploaded image. (B) PER-CLIP CONTENT — when source/end asset wiring or other per-output parameters differ, pass BOTH sourceImageIndices AND `prompts` (an array of N strings, one per clip) in the same single call. Each prompt must independently anchor the visible characters, scene action, camera, audio, exact screenplay-style speaker tags, and exact quoted dialogue for that segment. If you just wrote or displayed a script/table, copy the exact dialogue lines into the corresponding per-clip prompts; do not summarize them as speech activity. If using named speaker tags with any multi-person reference image or generated scene keyframe, include one explicit cast map in each prompt that binds each name to visible position, clothing, and props/actions, e.g. SPEAKER_A = left person holding a prop; SPEAKER_B = center person with tablet; SPEAKER_C = right person near table. Do not also describe the same people again as generic man/boy/girl/woman/character subjects. For screenplay, storyboard, commercial, series, or other longer-form tasks with recurring characters, preserve the same character names and repeated visual anchors in every per-clip prompt where each character appears. Use the standard single-source path (numberOfVariations only) when the user wants motion variety from a single fixed frame.',
21
+ description: 'Animate a photo into video with motion, audio, and dialogue using LTX 2.5 by default, LTX 2.3 as rollback, or WAN 2.2. Do NOT use this tool for seedance2, seedance2-mini, seedance2-mini-uncensored, seedance2-5, or seedance2-5-uncensored. Seedance media references — including Seedance 2.5 first-and-last-frame requests — must go through generate_video with referenceImageIndices/referenceVideoIndices/referenceAudioIndices and @Image/@Video/@Audio role text in the prompt; for seamless-loop Seedance requests with one uploaded image, the prompt should anchor it as both the first frame and last frame. LTX/WAN NOTE: uploaded audio files are not loose references for ltx25/ltx23/wan22; use sound_to_video when uploaded audio is the primary sync target. DANCE REQUESTS ("make them dance", "do the X dance"): use dance_montage — NOT this tool. LTX 2.5 and LTX 2.3 generate audio natively — describe dialogue and ambient sounds directly in the prompt (do NOT pre-generate audio for this tool). If the user provides exact speech, include it in double quotes; if they only imply speech, describe the performance and voice without inventing quoted words. Avoid placeholders such as "while speaking", "dialogue begins", "explaining", or "final line lands". PERSONA VOICE: Only when the user explicitly asks to use/clone a registered persona voice clip, call resolve_personas first, then set voicePersonaName to select which persona\'s voice clip to use. Do not set voicePersonaName for ordinary character dialogue or inferred voices; describe those voices in the prompt for native LTX audio. For cross-persona narration (e.g. David narrates a video of Aleyna), resolve both personas and set voicePersonaName to the narrator only if that registered voice was requested. On animate_photo, persona voice requires ltx23 because LTX 2.5 has no compatible ID-LoRA and WAN 2.2 does not support voice identity; for a persona voice on MiniMax H3 r2v, Seedance or Wan 3, use generate_video. PERSONA PIPELINE: For persona videos on this tool, ensure an image of the persona exists before calling animate_photo. The standard pipeline is: resolve_personas → edit_image → animate_photo. MiniMax H3 r2v, Seedance and Wan 3 reference videos skip this pipeline: generate_video takes the resolved persona reference images directly. If a suitable persona image already exists (user uploaded one, a prior edit_image/generate_image result, OR the user explicitly says to use the Persona image/reference photo directly), skip edit_image and animate directly. After resolve_personas, this tool can animate the injected persona image directly when that explicit direct-use instruction is given. Auto-uses the latest result image (from any prior tool) unless sourceImageIndex is set. Supports start-frame (default), end-frame, and start+end interpolation modes for LTX/WAN — ask the user which frame role their image should play if they mention "end frame", "last frame", or provide two images. FIRST+LAST FRAME WORKFLOW: When the user wants a non-Seedance video using two different scenes as start and end frames, prefer generating both images in a single generate_image/edit_image call with numberOfVariations=2 and Dynamic Prompts, then call animate_photo with frameRole="both", sourceImageIndex=0, endImageIndex=1. If the user explicitly wants separately created frame assets, preserve that staged instruction while keeping indices correct. In frameRole="both", the handler automatically inspects both images and upgrades the base prompt into a scene-aware smooth transition prompt, so your prompt should state the desired transition style, action, dialogue, and audio rather than trying to list every visible object. If the request is vague, analyze the image first and suggest 2-3 specific animation ideas tailored to what you see. Call once you have clear creative intent. N-VIDEOS PATTERN: Avoid sequential animate_photo calls for N outputs. For a single fixed source/end frame where only prompt text varies, use sourceImageIndex + numberOfVariations=N + one Dynamic Prompt branch in prompt so Sogni submits one project with multiple jobs. If the user explicitly asks for Dynamic Prompt or Dynamic Template syntax, prefer this one-project path whenever every output uses the same source/end frames and shared settings, even if they also ask to stitch the completed clips afterward. Use sourceImageIndices/prompts for multi-segment stitched non-Seedance video, different source/end assets, different audio windows, different durations/dimensions, isolated retry lifecycle, or other per-output parameters. sourceImageIndices supports up to 16 entries; there is NO 3-clip cap, so do not split one planned batch into "first 3" and "remaining" calls. For a dialogue-heavy total-duration request with no explicit per-clip duration, prefer 15-second clips on ltx25 by default (or ltx23 rollback) (30s total = 2 clips × 15s) and 10-second clips on wan22 (60s total on wan22 = 6 clips × 10s; do NOT pick 4 clips × 15s on wan22 — the wan22 worker rejects clips longer than 10s). Multi-source flavors: (A) SHARED CONTENT — when all N clips have the same dialogue/motion but different source visuals (different scenes, outfits, environments, persona looks), first generate N distinct images via ONE edit_image/generate_image call with numberOfVariations=N + Dynamic Prompts {|}, then call animate_photo with sourceImageIndices=[start..start+N-1] and a single shared `prompt`. If all segments intentionally reuse the primary uploaded image and only prompt text varies, use sourceImageIndex=-1, frameRole="both" if requested, endImageIndex=-1 if requested, numberOfVariations=N, and one Dynamic Prompt branch in prompt. Each branch option must be a complete natural-language motion prompt; do not include "clip N", source-frame boilerplate, "overall request context", or instructions to follow the user request. For a long scripted/dialogue/storyboard video from a single supplied/uploaded image where each segment needs isolated exact dialogue or per-segment wiring, use sourceImageIndices=[-1,-1,...] and per-clip prompts. Only set frameRole="both" and endImageIndex=-1 when the user explicitly says the same uploaded/source/original image should be both the first and last frame of every segment. If the user requests generated source images first, honor that image stage, then animate the generated result indices. When using generated scene keyframes and each clip should begin and end on its own scene image for stitching, call animate_photo with frameRole="both" and sourceImageIndices=[start..end] but OMIT endImageIndex; do not set endImageIndex=-1 unless every source is the uploaded image. (B) PER-CLIP CONTENT — when source/end asset wiring or other per-output parameters differ, pass BOTH sourceImageIndices AND `prompts` (an array of N strings, one per clip) in the same single call. Each prompt must independently anchor the visible characters, scene action, camera, audio, exact screenplay-style speaker tags, and exact quoted dialogue for that segment. If you just wrote or displayed a script/table, copy the exact dialogue lines into the corresponding per-clip prompts; do not summarize them as speech activity. If using named speaker tags with any multi-person reference image or generated scene keyframe, include one explicit cast map in each prompt that binds each name to visible position, clothing, and props/actions, e.g. SPEAKER_A = left person holding a prop; SPEAKER_B = center person with tablet; SPEAKER_C = right person near table. Do not also describe the same people again as generic man/boy/girl/woman/character subjects. For screenplay, storyboard, commercial, series, or other longer-form tasks with recurring characters, preserve the same character names and repeated visual anchors in every per-clip prompt where each character appears. Use the standard single-source path (numberOfVariations only) when the user wants motion variety from a single fixed frame.',
22
22
  parameters: {
23
23
  type: "object",
24
24
  properties: {
@@ -175,7 +175,7 @@ ${VIDEO_PROMPT_LENGTH_LIMITS_GUIDANCE}`,
175
175
  },
176
176
  voicePersonaName: {
177
177
  type: "string",
178
- description: 'ONLY when the user explicitly requests a registered/reference persona voice clip. Name of the persona whose voice clip to use as referenceAudioIdentity. Set this when the narrator/speaker is a different persona than the one shown in the video (e.g. "David" narrates a video of Aleyna), or to explicitly select a requested voice when multiple personas with voice clips are resolved. Do NOT set this for ordinary character dialogue, inferred voices, or personas without a voice clip — LTX 2.3 generates voice natively from the text prompt instead. Requires ltx23 because LTX 2.5 has no compatible ID-LoRA.',
178
+ description: 'ONLY when the user explicitly asks for a registered persona\'s own voice. Name of the persona whose voice clip to use as referenceAudioIdentity (LTX 2.3 Audio ID). Set this when the narrator/speaker is a different persona than the one shown in the video (e.g. "David" narrates a video of Aleyna), or to explicitly select a requested voice when multiple personas with voice clips are resolved. Do NOT set this for ordinary character dialogue, inferred voices, or personas without a voice clip — LTX 2.3 generates voice natively from the text prompt instead. On animate_photo it requires ltx23: LTX 2.5 has no compatible ID-LoRA, and the WAN, Wan 3, HappyHorse and MiniMax H3 frame modes take no voice reference. For a persona voice on MiniMax H3 r2v, Seedance or Wan 3, use generate_video.',
179
179
  },
180
180
  loras: {
181
181
  type: "array",
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/animate-photo/definition.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,gDAAgD,EAChD,6BAA6B,EAC7B,0CAA0C,EAC1C,2CAA2C,EAC3C,8CAA8C,EAC9C,6BAA6B,GAC9B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,EAChC,sBAAsB,EACtB,mBAAmB,GACpB,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iBAC9C;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC;AAEF,UAAU,CAAC,QAAQ,CAAC,WAAW;IAC7B,iGAAiG,CAAC;AAEpG,UAAU,CAAC,QAAQ,CAAC,WAAW,IAAI,IAAI,6BAA6B,EAAE,CAAC"}
1
+ {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/animate-photo/definition.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,gDAAgD,EAChD,6BAA6B,EAC7B,0CAA0C,EAC1C,2CAA2C,EAC3C,8CAA8C,EAC9C,6BAA6B,GAC9B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,EAChC,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,mCAAmC,EAAE,MAAM,oCAAoC,CAAC;AASzF,MAAM,iBAAiB,GAAG;IACxB,gBAAgB;IAChB,sBAAsB;IACtB,6BAA6B;IAC7B,oCAAoC;IACpC,kBAAkB;IAClB,wBAAwB;IACxB,+BAA+B;IAC/B,sCAAsC;CAC9B,CAAC;AAEX,MAAM,yBAAyB,GAC7B,wcAAwc,CAAC;AAE3c,MAAM,CAAC,MAAM,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,eAAe;QACrB,WAAW,EACT,wxPAAwxP;QAC1xP,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;;EAErB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8B7B,mCAAmC,EAAE;iBAC9B;gBACD,YAAY,EAAE;oBACZ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AAW,CAAC;wBACrC,oBAAoB,EAAE,KAAK;qBAC5B;oBACD,WAAW,EAAE,8CAA8C;iBAC5D;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,sxBAAsxB;iBACzxB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,OAAO;oBACb,QAAQ,EAAE,CAAC;oBACX,QAAQ,EAAE,CAAC;oBACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;oBACvC,WAAW,EACT,sJAAsJ,sBAAsB,OAAO,mBAAmB,CAAC,iBAAiB,CAAC,OAAO,+BAA+B,EAAE;iBACpQ;gBACD,aAAa,EAAE;oBACb,IAAI,EAAE,OAAO;oBACb,QAAQ,EAAE,CAAC;oBACX,QAAQ,EAAE,CAAC;oBACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACzB,WAAW,EAAE,gCAAgC;iBAC9C;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC;AAEF,UAAU,CAAC,QAAQ,CAAC,WAAW;IAC7B,iGAAiG,CAAC;AAEpG,UAAU,CAAC,QAAQ,CAAC,WAAW,IAAI,IAAI,6BAA6B,EAAE,CAAC"}
@@ -3,7 +3,7 @@ export const definition = {
3
3
  type: 'function',
4
4
  function: {
5
5
  name: 'generate_speech',
6
- description: 'Turn written words into spoken audio. Use when the user wants something read aloud, a narration, a voiceover, a line of dialogue, an audiobook passage, or a voice cloned from a recording they uploaded. This tool speaks text; it does not compose music — use generate_music for songs and instrumentals.',
6
+ description: 'Turn written words into spoken audio. Use when the user wants something read aloud, a narration, a voiceover, a line of dialogue, an audiobook passage, or a voice cloned from a recording they uploaded or from a saved persona\'s voice recording. This tool speaks text; it does not compose music — use generate_music for songs and instrumentals.',
7
7
  parameters: {
8
8
  type: 'object',
9
9
  properties: {
@@ -23,7 +23,7 @@ Limit 4096 characters, roughly five minutes of speech. A longer script is refuse
23
23
  model: {
24
24
  type: 'string',
25
25
  enum: ['voice', 'clone', 'design'],
26
- description: 'Which speech model to use, chosen by what the user gave you. "voice" (default): one of nine studio voices, optionally restyled by voiceDescription — the right choice for narration, voiceover and dialogue when no particular person is being imitated. "clone": reproduces a specific voice from a recording the user uploaded; requires voiceSourceIndex. "design": invents a speaker who does not exist from a written description; requires voiceDescription and takes no recording. Pick "clone" whenever the user uploads a voice clip and asks for that person, and "design" when they describe a speaker instead of choosing one.',
26
+ description: 'Which speech model to use, chosen by what the user gave you. "voice" (default): one of nine studio voices, optionally restyled by voiceDescription — the right choice for narration, voiceover and dialogue when no particular person is being imitated. "clone": reproduces a specific voice from a recording the user uploaded or a resolved persona\'s voice recording; requires voiceSourceIndex. "design": invents a speaker who does not exist from a written description; requires voiceDescription and takes no recording. Pick "clone" whenever the user uploads a voice clip and asks for that person, or asks for a saved persona\'s own voice, and "design" when they describe a speaker instead of choosing one.',
27
27
  },
28
28
  voice: {
29
29
  type: 'string',
@@ -47,12 +47,12 @@ Limit 4096 characters, roughly five minutes of speech. A longer script is refuse
47
47
  },
48
48
  voiceSourceIndex: {
49
49
  type: 'number',
50
- description: 'Which audio holds the voice to clone, using the same numbering every other tool uses for audio: negative indices are uploads (-1 = first/primary upload, -2 = second upload, and so on) and 0-based non-negative indices are audio generated earlier in this conversation. A clip the user just uploaded is -1. Required when model="clone" and ignored otherwise. The clip should be three to thirty seconds of one person speaking cleanly, with no music, no second speaker and no heavy room echo; anything past thirty seconds is trimmed.',
50
+ description: 'Which audio holds the voice to clone, using the same numbering every other tool uses for audio: negative indices are uploads (-1 = first/primary upload, -2 = second upload, and so on) and 0-based non-negative indices are audio generated earlier in this conversation. A clip the user just uploaded is -1. A resolved persona\'s full voice recording uses the index resolve_personas reports. Required when model="clone" and ignored otherwise. The clip should be three to thirty seconds of one person speaking cleanly, with no music, no second speaker and no heavy room echo; anything past thirty seconds is trimmed.',
51
51
  },
52
52
  voice_source_url: { type: 'string', description: 'REST alternative to voiceSourceIndex: retrievable original recording for clone mode.' },
53
53
  voiceTranscript: {
54
54
  type: 'string',
55
- description: 'The exact words spoken in the uploaded clip, when model="clone". Supplying it lets the model condition on the recording itself rather than on a speaker fingerprint alone, which is markedly closer to the source — set it whenever the user tells you what the clip says or the transcript is otherwise known. Omitting it still produces a recognisable clone, just a looser one. Limit 1024 characters.',
55
+ description: 'The exact words spoken in the uploaded clip, when model="clone". Supplying it lets the model condition on the recording itself rather than on a speaker fingerprint alone, which is markedly closer to the source — set it whenever the user tells you what the clip says or the transcript is otherwise known. Omitting it still produces a recognisable clone, just a looser one. Leave it out for a persona voice recording: the persona\'s saved transcript is filled in automatically. Limit 1024 characters.',
56
56
  maxLength: 1024,
57
57
  },
58
58
  language: {
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-speech/definition.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAErF,MAAM,CAAC,MAAM,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,iBAAiB;QACvB,WAAW,EACT,8SAA8S;QAChT,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;;EAErB,uBAAuB;;;;;;yKAMgJ;oBAC/J,SAAS,EAAE,IAAI;iBAChB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC;oBAClC,WAAW,EACT,4mBAA4mB;iBAC/mB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE;wBACJ,QAAQ;wBACR,QAAQ;wBACR,UAAU;wBACV,MAAM;wBACN,OAAO;wBACP,UAAU;wBACV,O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,CAAC;SACrB;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-speech/definition.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAErF,MAAM,CAAC,MAAM,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,iBAAiB;QACvB,WAAW,EACT,yVAAyV;QAC3V,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;;EAErB,uBAAuB;;;;;;yKAMgJ;oBAC/J,SAAS,EAAE,IAAI;iBAChB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC;oBAClC,WAAW,EACT,+rBAA+rB;iBAClsB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE;wBACJ,QAAQ;wBACR,QAAQ;wBACR,UAAU;wBACV,MAAM;wBACN,OAAO;wBACP,UAAU;wBACV,OAAO;wBACP,MAAM;wBACN,OAAO;qBACR;oBACD,WAAW,EACT,8VAA8V;iBACjW;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,gqBAAgqB;oBAClqB,SAAS,EAAE,GAAG;iBACf;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,qmBAAqmB;iBACxmB;gBACD,gBAAgB,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,sFAAsF,EAAE;gBACzI,eAAe,EAAE;oBACf,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,ofAAof;oBACtf,SAAS,EAAE,IAAI;iBAChB;gBACD,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE;wBACJ,MAAM;wBACN,SAAS;wBACT,SAAS;wBACT,UAAU;wBACV,QAAQ;wBACR,QAAQ;wBACR,QAAQ;wBACR,SAAS;wBACT,YAAY;wBACZ,SAAS;wBACT,SAAS;qBACV;oBACD,WAAW,EACT,mVAAmV;iBACtV;gBACD,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,WAAW,EAAE,uDAAuD,EAAE;gBAC9H,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,iCAAiC,EAAE;gBAC9G,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,0CAA0C,EAAE;gBACnH,kBAAkB,EAAE;oBAClB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,yMAAyM;oBAC3M,OAAO,EAAE,CAAC;oBACV,OAAO,EAAE,EAAE;iBACZ;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC"}
@@ -19,7 +19,7 @@ export const definition = {
19
19
  type: "function",
20
20
  function: {
21
21
  name: "generate_video",
22
- description: 'Generate a video from text or Seedance multimodal references. LTX 2.5 is the default and generates audio natively; LTX 2.3 remains available as rollback and also generates audio natively (dialogue, sounds, ambient music) — describe audio in the prompt. If the user provides exact speech, include it in double quotes; if they only imply speech, describe the performance and voice without inventing quoted words. Never use placeholders such as "while speaking", "dialogue begins", "explaining", or "final line lands". PERSONA VOICE: Only when the user explicitly asks to use/clone a registered persona voice clip, call resolve_personas first, then set voicePersonaName to select which persona\'s voice clip to use. Do not set voicePersonaName for ordinary character dialogue or inferred voices; describe those voices in the prompt for native LTX audio. For cross-persona narration (e.g. David narrates a video of Aleyna), resolve both personas and set voicePersonaName to the narrator only if that registered voice was requested. Persona voice requires ltx23 because LTX 2.5 has no compatible ID-LoRA and WAN 2.2 does not support voice identity. For non-Seedance syncing to a specific song or audio track, use sound_to_video instead. For non-Seedance animation from a locked source photo, use animate_photo. Do NOT use for My Personas unless generating a Seedance reference-based video — standard persona videos use resolve_personas → edit_image → animate_photo. SEEDANCE DEFAULT: For seedance2, seedance2-mini, seedance2-mini-uncensored, seedance2-5, or seedance2-5-uncensored, default to exactly one video (4-15s on 2.0/Mini/Mini Uncensored, 4-30s on seedance2-5 and seedance2-5-uncensored) unless the user explicitly asks for multiple separate outputs. Multiple beats, shots, or scene descriptions in one up-to-15s Seedance prompt are still one video. If the user requests one continuous Seedance video longer than 15s, prefer seedance2-5, which renders up to 30s in a single call; beyond 30s (or on 2.0/Mini) preserve the requested total duration in the prompt/context and let chat orchestration split it into supported segment renders and stitch them instead of clamping it to a short excerpt. Uploaded/generated storyboard, shot-sheet, or trailer-concept images used as Seedance references should become one Seedance 2.5 generate_video call at targetResolution=1080 by default; preserve an explicitly requested model or resolution, and use Seedance 2.0 for 4K because Seedance 2.5 supports up to 1080p. Do not extract panels with edit_image and do not animate the storyboard sheet with LTX unless the user explicitly asks for separate non-Seedance clips. Seedance loose image, video, and audio references go through this tool; do not use animate_photo sourceImageIndex/frameRole/endImageIndex for Seedance. If an uploaded video is the source clip to transform, upscale, enhance, restyle, or remaster, use video_to_video with controlMode="seedance-v2v" instead of generate_video referenceVideoIndices. If the uploaded audio is the primary sync target, lip-sync target, or requested as sound-to-video/audio-sync, use sound_to_video with videoModel="seedance2-mini" instead of this tool unless the user asks for full Seedance. Use referenceAudioIndices here only when audio is a loose reference under an image/video-anchored Seedance shot. For Seedance, every image — first frame, last frame, or loose reference — is passed through referenceImageIndices (auto-uploaded as referenceImageUrls). Anchor frame intent in the prompt with @Image tags such as "Use @Image1 as the opening shot reference. Begin the video with a composition, subject placement, lighting, mood, and camera framing that closely match @Image1." (or @Image2 as the final shot reference). For seamless-loop or "first frame and last frame identical" requests with a single uploaded image, anchor it explicitly as both: "Use @Image1 as both the first frame and last frame so the video loops cleanly back to the opening composition." Assign each useful @Image/@Video/@Audio tag a role. APPROVED STORYBOARD PRODUCTION: When the user asks for a production workflow from an approved storyboard, the chat orchestrator should use the durable CampaignStoryboard contract: render the composite board, audit it, generate one reference still per approved scene with GPT Image 2.5 Sunburst, render each scene as a Seedance 2.5 video segment at 1080p, then stitch the segments. Preserve an explicit alternate model or resolution. Do not replace that with a generic storyboard-reference video unless the user asks for a fast draft. PARTIAL VIDEO EDITS: Do NOT call generate_video to re-render an existing rendered/uploaded video just to change part of it (the bumper, the intro, the end card, a single scene, the last few seconds, etc.). Use replace_video_segment for that — it preserves the unchanged portion, keeps the original audio outside the replaced window, and costs far less. Likewise use extend_video to add new time to the end without rewriting the rest. If the request is vague, ask about vision/mood/style first. Only call once you have clear creative intent. WAN 3 uses the exact selector wan3.0-video: use this tool for text-to-video or loose Image 1/Video 1/Audio 1 references; use animate_photo for native first/last frames and sound_to_video when audio drives timing. A Wan 3 video reference conditions a new generation; it does not invoke a provider-backed edit or extend mode.',
22
+ description: 'Generate a video from text or Seedance multimodal references. LTX 2.5 is the default and generates audio natively; LTX 2.3 remains available as rollback and also generates audio natively (dialogue, sounds, ambient music) — describe audio in the prompt. If the user provides exact speech, include it in double quotes; if they only imply speech, describe the performance and voice without inventing quoted words. Never use placeholders such as "while speaking", "dialogue begins", "explaining", or "final line lands". PERSONA VOICE: Only when the user explicitly asks to use/clone a registered persona\'s own voice, call resolve_personas first, then set voicePersonaName to select which persona\'s voice to use. Do not set voicePersonaName for ordinary character dialogue or inferred voices; describe those voices in the prompt for native audio. For cross-persona narration (e.g. David narrates a video of Aleyna), resolve both personas and set voicePersonaName to the narrator only if that registered voice was requested. Persona voice works on ltx23 (Audio ID) and as a voice reference on MiniMax H3 r2v, Seedance and Wan 3; LTX 2.5 has no compatible ID-LoRA and WAN 2.2 does not support voice identity. For non-Seedance syncing to a specific song or audio track, use sound_to_video instead. For non-Seedance animation from a locked source photo, use animate_photo. MY PERSONAS: On MiniMax H3 r2v, Seedance or Wan 3, pass a resolved persona\'s reference images straight in through referenceImageIndices with no edit_image step; every clip carries its own references, and the prompt binds each persona to its images with the model\'s tokens (@Image1, <Picture 1>, Image 1). On LTX and WAN 2.2, persona videos use resolve_personas → edit_image → animate_photo. SEEDANCE DEFAULT: For seedance2, seedance2-mini, seedance2-mini-uncensored, seedance2-5, or seedance2-5-uncensored, default to exactly one video (4-15s on 2.0/Mini/Mini Uncensored, 4-30s on seedance2-5 and seedance2-5-uncensored) unless the user explicitly asks for multiple separate outputs. Multiple beats, shots, or scene descriptions in one up-to-15s Seedance prompt are still one video. If the user requests one continuous Seedance video longer than 15s, prefer seedance2-5, which renders up to 30s in a single call; beyond 30s (or on 2.0/Mini) preserve the requested total duration in the prompt/context and let chat orchestration split it into supported segment renders and stitch them instead of clamping it to a short excerpt. Uploaded/generated storyboard, shot-sheet, or trailer-concept images used as Seedance references should become one Seedance 2.5 generate_video call at targetResolution=1080 by default; preserve an explicitly requested model or resolution, and use Seedance 2.0 for 4K because Seedance 2.5 supports up to 1080p. Do not extract panels with edit_image and do not animate the storyboard sheet with LTX unless the user explicitly asks for separate non-Seedance clips. Seedance loose image, video, and audio references go through this tool; do not use animate_photo sourceImageIndex/frameRole/endImageIndex for Seedance. If an uploaded video is the source clip to transform, upscale, enhance, restyle, or remaster, use video_to_video with controlMode="seedance-v2v" instead of generate_video referenceVideoIndices. If the uploaded audio is the primary sync target, lip-sync target, or requested as sound-to-video/audio-sync, use sound_to_video with videoModel="seedance2-mini" instead of this tool unless the user asks for full Seedance. Use referenceAudioIndices here only when audio is a loose reference under an image/video-anchored Seedance shot. For Seedance, every image — first frame, last frame, or loose reference — is passed through referenceImageIndices (auto-uploaded as referenceImageUrls). Anchor frame intent in the prompt with @Image tags such as "Use @Image1 as the opening shot reference. Begin the video with a composition, subject placement, lighting, mood, and camera framing that closely match @Image1." (or @Image2 as the final shot reference). For seamless-loop or "first frame and last frame identical" requests with a single uploaded image, anchor it explicitly as both: "Use @Image1 as both the first frame and last frame so the video loops cleanly back to the opening composition." Assign each useful @Image/@Video/@Audio tag a role. APPROVED STORYBOARD PRODUCTION: When the user asks for a production workflow from an approved storyboard, the chat orchestrator should use the durable CampaignStoryboard contract: render the composite board, audit it, generate one reference still per approved scene with GPT Image 2.5 Sunburst, render each scene as a Seedance 2.5 video segment at 1080p, then stitch the segments. Preserve an explicit alternate model or resolution. Do not replace that with a generic storyboard-reference video unless the user asks for a fast draft. PARTIAL VIDEO EDITS: Do NOT call generate_video to re-render an existing rendered/uploaded video just to change part of it (the bumper, the intro, the end card, a single scene, the last few seconds, etc.). Use replace_video_segment for that — it preserves the unchanged portion, keeps the original audio outside the replaced window, and costs far less. Likewise use extend_video to add new time to the end without rewriting the rest. If the request is vague, ask about vision/mood/style first. Only call once you have clear creative intent. WAN 3 uses the exact selector wan3.0-video: use this tool for text-to-video or loose Image 1/Video 1/Audio 1 references; use animate_photo for native first/last frames and sound_to_video when audio drives timing. A Wan 3 video reference conditions a new generation; it does not invoke a provider-backed edit or extend mode.',
23
23
  parameters: {
24
24
  type: "object",
25
25
  properties: {
@@ -134,7 +134,7 @@ ${VIDEO_PROMPT_LENGTH_LIMITS_GUIDANCE}`,
134
134
  "wan3.0-spicy-video",
135
135
  ],
136
136
  description: '"ltx25" (default): LTX 2.5 with native audio; Fast, HQ, and Pro currently use the release-validated official Distilled INT8 workflow. The Dev checkpoints are not publicly routed until upstream publishes and Sogni validates an official ComfyUI Dev recipe. ' +
137
- 'Video model. "ltx23": LTX 2.3 rollback with native audio. "wan22": quick simple motion without audio. "minimax-h3-t2v": standard 20-step MiniMax H3 text-to-video; "minimax-h3-t2v-turbo": the existing 4-step LightX2V Turbo text-to-video; "minimax-h3-fasth3-t2v-turbo": the separate FastVideo VSA four-step FastH3 engine, about 2x faster and fixed to Euler/simple; "minimax-h3-fasth3-t2v-turbo-2stage": the two-stage FastH3 engine: FastH3 renders the canvas, then the worker enlarges it 2x and refines it, so the clip is delivered at twice the canvas width and height with the same length and audio. targetResolution picks the delivered class: 1080 renders a 544px short-edge canvas (960x544 is delivered at 1920x1088) for 10 Spark per second, 1440 or omitted renders the 768p canvas for 2K (1344x768 is delivered at 2688x1536) for 16 Spark per second, and 720 renders a 384px canvas (672x384 is delivered at 1344x768) for the regular FastH3 price of 4 Spark per second. The estimate prices every request. It takes the same inputs, durations and LoRAs as "minimax-h3-fasth3-t2v-turbo". Choose it when the user asks for 1080p, 1440p or 2K MiniMax H3 output, for two-stage output, or for the sharpest/best H3 quality; for ordinary 768p FastH3 output keep the regular FastH3 selector at targetResolution 768. All use native audio, fixed 24fps, 5.17-15.08s, and a 768p-class 32px-grid canvas; use animate_photo for H3 image-conditioned modes. Base and Turbo T2V/I2V/FLF2V prompts use the exact ordered fields integrated_multimodal_description, overall_soundscape, and non_diegetic_music; I2V/FLF2V prepend the official alignment line. "minimax-h3-r2v": standard 20-step MiniMax H3 reference-to-video; "minimax-h3-r2v-turbo": the dedicated LightX2V 4-step Ref2VA Turbo workflow using Euler/simple and a 960x544 default. "minimax-h3-r2v-2stage" (Standard, 20 steps, res_multistep/simple) and "minimax-h3-r2v-balanced-2stage" (Balanced, 8 steps, Euler/simple) are the two-stage reference-to-video forms: the tier renders the canvas, then the worker enlarges it 2x and refines it, so the clip is delivered at twice the canvas width and height with the same length, audio and references. targetResolution names the delivered class exactly as for the FastH3 two-stage selectors: 1080 renders a 544px short-edge canvas (960x544 is delivered at 1920x1088), 1440 or omitted renders the 768p canvas for 2K (1344x768 is delivered at 2688x1536), and 720 renders a 384px canvas (672x384 is delivered at 1344x768). Each bills its tier\'s own per-second rate plus the two-stage surcharge of the delivered class (none at 720p); the estimate prices every request. Choose one when the user asks for 1080p, 1440p or 2K MiniMax H3 reference-to-video output; keep the one-stage "minimax-h3-r2v" or Balanced selector for ordinary 768p output. "minimax-h3-fasth3-r2v-turbo" is FastH3 Reference, the FastH3 tier\'s reference-to-video engine (FastVideo\'s FastH3 Omni on its own distilled checkpoint), about twice as fast as Balanced Reference, with the same references, durations, catalog LoRAs and Personal LoRAs as the other R2V selectors; "minimax-h3-fasth3-r2v-turbo-2stage" is its two-stage form and reads targetResolution like the other two-stage selectors (1080, 1440 or omitted for 2K, 720), billing its own per-second rate plus the two-stage surcharge of the delivered class. Every R2V selector accepts up to 9 images, 3 videos, and 3 audios (12 files total); at least one visual reference (image or video) is required and audio alone is invalid. Select references with referenceImageIndices/referenceVideoIndices/referenceAudioIndices and address them with the official <Subject N>/<Picture N>/<Video N>/<Audio N> semantics. Seedance quality is selected only by model: use "seedance2-mini" for Seedance 2.0 Mini or faster/lower-cost 720p iteration, use "seedance2-5" at targetResolution=1080 for generated/uploaded storyboard images and current high-quality Seedance generation unless the user explicitly requests another model or resolution, and use "seedance2" for Seedance 2.0 or 4K requests because Seedance 2.5 supports up to 1080p. Do not use Default Media Quality Fast/HQ/Pro to represent Seedance quality. "seedance2-5": Seedance 2.5, the newest Seedance generation — 480p, 720p, and 1080p (4K is unsupported), 4-30s per clip at a fixed 24 fps, native audio, first-and-last-frame conditioning, and a much larger reference budget than the 2.0 family: up to 30 images, 10 videos, and 10 audios, with up to 50 reference media files total, subject to those per-modality caps. Choose "seedance2-5" when the user asks for Seedance 2.5, wants a single continuous Seedance clip longer than 15s (2.5 renders up to 30s in one call instead of being split and stitched), or wants a first-and-last-frame Seedance transition. Keep "seedance2" for 4K requests; Seedance 2.5 supports up to 1080p. ' +
137
+ 'Prefer FastH3 Omni R2V (minimax-h3-fasth3-r2v-turbo) for MiniMax reference-to-video. For two-stage, 1080p or 2K output, prefer minimax-h3-fasth3-r2v-turbo-2stage. Use Standard, Balanced, or LightX2V Turbo R2V only when explicitly requested. Video model. "ltx23": LTX 2.3 rollback with native audio. "wan22": quick simple motion without audio. "minimax-h3-t2v": standard 20-step MiniMax H3 text-to-video; "minimax-h3-t2v-turbo": the existing 4-step LightX2V Turbo text-to-video; "minimax-h3-fasth3-t2v-turbo": the separate FastVideo VSA four-step FastH3 engine, about 2x faster and fixed to Euler/simple; "minimax-h3-fasth3-t2v-turbo-2stage": the two-stage FastH3 engine: FastH3 renders the canvas, then the worker enlarges it 2x and refines it, so the clip is delivered at twice the canvas width and height with the same length and audio. targetResolution picks the delivered class: 1080 renders a 544px short-edge canvas (960x544 is delivered at 1920x1088) for 10 Spark per second, 1440 or omitted renders the 768p canvas for 2K (1344x768 is delivered at 2688x1536) for 16 Spark per second, and 720 renders a 384px canvas (672x384 is delivered at 1344x768) for the regular FastH3 price of 4 Spark per second. The estimate prices every request. It takes the same inputs, durations and LoRAs as "minimax-h3-fasth3-t2v-turbo". Choose it when the user asks for 1080p, 1440p or 2K MiniMax H3 output, for two-stage output, or for the sharpest/best H3 quality; for ordinary 768p FastH3 output keep the regular FastH3 selector at targetResolution 768. All use native audio, fixed 24fps, 5.17-15.08s, and a 768p-class 32px-grid canvas; use animate_photo for H3 image-conditioned modes. Base and Turbo T2V/I2V/FLF2V prompts use the exact ordered fields integrated_multimodal_description, overall_soundscape, and non_diegetic_music; I2V/FLF2V prepend the official alignment line. "minimax-h3-r2v": standard 20-step MiniMax H3 reference-to-video; "minimax-h3-r2v-turbo": the dedicated LightX2V 4-step Ref2VA Turbo workflow using Euler/simple and a 960x544 default. "minimax-h3-r2v-2stage" (Standard, 20 steps, res_multistep/simple) and "minimax-h3-r2v-balanced-2stage" (Balanced, 8 steps, Euler/simple) are the two-stage reference-to-video forms: the tier renders the canvas, then the worker enlarges it 2x and refines it, so the clip is delivered at twice the canvas width and height with the same length, audio and references. targetResolution names the delivered class exactly as for the FastH3 two-stage selectors: 1080 renders a 544px short-edge canvas (960x544 is delivered at 1920x1088), 1440 or omitted renders the 768p canvas for 2K (1344x768 is delivered at 2688x1536), and 720 renders a 384px canvas (672x384 is delivered at 1344x768). Each bills its tier\'s own per-second rate plus the two-stage surcharge of the delivered class (none at 720p); the estimate prices every request. Choose these only for an explicitly requested Standard or Balanced tier; otherwise prefer FastH3 Omni R2V and its two-stage selector for 1080p or 2K. "minimax-h3-fasth3-r2v-turbo" is FastH3 Reference, the FastH3 tier\'s reference-to-video engine (FastVideo\'s FastH3 Omni on its own distilled checkpoint), about twice as fast as Balanced Reference, with the same references, durations, catalog LoRAs and Personal LoRAs as the other R2V selectors; "minimax-h3-fasth3-r2v-turbo-2stage" is its two-stage form and reads targetResolution like the other two-stage selectors (1080, 1440 or omitted for 2K, 720), billing its own per-second rate plus the two-stage surcharge of the delivered class. Every R2V selector accepts up to 9 images, 3 videos, and 3 audios (12 files total); at least one visual reference (image or video) is required and audio alone is invalid. Select references with referenceImageIndices/referenceVideoIndices/referenceAudioIndices and address them with the official <Subject N>/<Picture N>/<Video N>/<Audio N> semantics. Seedance quality is selected only by model: use "seedance2-mini" for Seedance 2.0 Mini or faster/lower-cost 720p iteration, use "seedance2-5" at targetResolution=1080 for generated/uploaded storyboard images and current high-quality Seedance generation unless the user explicitly requests another model or resolution, and use "seedance2" for Seedance 2.0 or 4K requests because Seedance 2.5 supports up to 1080p. Do not use Default Media Quality Fast/HQ/Pro to represent Seedance quality. "seedance2-5": Seedance 2.5, the newest Seedance generation — 480p, 720p, and 1080p (4K is unsupported), 4-30s per clip at a fixed 24 fps, native audio, first-and-last-frame conditioning, and a much larger reference budget than the 2.0 family: up to 30 images, 10 videos, and 10 audios, with up to 50 reference media files total, subject to those per-modality caps. Choose "seedance2-5" when the user asks for Seedance 2.5, wants a single continuous Seedance clip longer than 15s (2.5 renders up to 30s in one call instead of being split and stitched), or wants a first-and-last-frame Seedance transition. Keep "seedance2" for 4K requests; Seedance 2.5 supports up to 1080p. ' +
138
138
  SEEDANCE_25_UNCENSORED_MODEL_DESCRIPTION +
139
139
  ' ' +
140
140
  SEEDANCE_MINI_UNCENSORED_MODEL_DESCRIPTION +
@@ -207,7 +207,7 @@ ${VIDEO_PROMPT_LENGTH_LIMITS_GUIDANCE}`,
207
207
  },
208
208
  voicePersonaName: {
209
209
  type: "string",
210
- description: 'ONLY when the user explicitly requests a registered/reference persona voice clip. Name of the persona whose voice clip to use as referenceAudioIdentity. Set this when the narrator/speaker is a different persona than the one described in the video (e.g. "David" narrates a scene featuring Aleyna), or to explicitly select a requested voice when multiple personas with voice clips are resolved. Do NOT set this for ordinary character dialogue, inferred voices, or personas without a voice clip — LTX 2.3 generates voice natively from the text prompt instead. Requires ltx23 because LTX 2.5 has no compatible ID-LoRA.',
210
+ description: 'ONLY when the user explicitly asks for a registered persona\'s own voice. Name of the resolved persona whose voice to use. Set this when the narrator/speaker is a different persona than the one described in the video (e.g. "David" narrates a scene featuring Aleyna), or to explicitly select a requested voice when multiple personas with voice clips are resolved. Do NOT set this for ordinary character dialogue, inferred voices, or personas without a voice clip; describe those voices in the prompt instead. On ltx23 it is Audio ID (LTX 2.5 has no compatible ID-LoRA). On MiniMax H3 r2v, Seedance and Wan 3, that persona\'s short voice sample is attached as an audio reference for its timbre, next to the persona\'s reference images, and counts against the model\'s audio reference limit; on MiniMax H3 also set sourceAudioPolicy="reference_only". The sample is the voice, not the soundtrack: write the spoken words in the prompt. Other video models have no voice identity.',
211
211
  },
212
212
  loras: {
213
213
  type: "array",
@@ -1 +1 @@
1
- {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-video/definition.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,EAChC,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,iDAAiD,EACjD,6BAA6B,EAC7B,wCAAwC,EACxC,0CAA0C,EAC1C,kCAAkC,EAClC,2CAA2C,EAC3C,2CAA2C,EAC3C,0CAA0C,EAC1C,2CAA2C,EAC3C,+CAA+C,EAC/C,6BAA6B,GAC9B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM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Q;oBACd,WAAW,EACT,wmBAAwmB;iBAC3mB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,OAAO;oBACb,QAAQ,EAAE,CAAC;oBACX,QAAQ,EAAE,CAAC;oBACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;oBACvC,WAAW,EACT,sJAAsJ,sBAAsB,OAAO,mBAAmB,CAAC,iBAAiB,CAAC,OAAO,+BAA+B,EAAE;iBACpQ;gBACD,aAAa,EAAE;oBACb,IAAI,EAAE,OAAO;oBACb,QAAQ,EAAE,CAAC;oBACX,QAAQ,EAAE,CAAC;oBACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACzB,WAAW,EAAE,gCAAgC;iBAC9C;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC;AAEF,UAAU,CAAC,QAAQ,CAAC,WAAW,IAAI,IAAI,6BAA6B,EAAE,CAAC"}
1
+ {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-video/definition.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,+BAA+B,EAC/B,gCAAgC,EAChC,sBAAsB,EACtB,mBAAmB,GACpB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,iDAAiD,EACjD,6BAA6B,EAC7B,wCAAwC,EACxC,0CAA0C,EAC1C,kCAAkC,EAClC,2CAA2C,EAC3C,2CAA2C,EAC3C,0CAA0C,EAC1C,2CAA2C,EAC3C,+CAA+C,EAC/C,6BAA6B,GAC9B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,mCAAmC,EAAE,MAAM,oCAAoC,CAAC;AAUzF,MAAM,iBAAiB,GAAG;IACxB,gBAAgB;IAChB,sBAAsB;IACtB,6BAA6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KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;oBACvC,WAAW,EACT,sJAAsJ,sBAAsB,OAAO,mBAAmB,CAAC,iBAAiB,CAAC,OAAO,+BAA+B,EAAE;iBACpQ;gBACD,aAAa,EAAE;oBACb,IAAI,EAAE,OAAO;oBACb,QAAQ,EAAE,CAAC;oBACX,QAAQ,EAAE,CAAC;oBACX,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBACzB,WAAW,EAAE,gCAAgC;iBAC9C;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC;AAEF,UAAU,CAAC,QAAQ,CAAC,WAAW,IAAI,IAAI,6BAA6B,EAAE,CAAC"}
@@ -104,20 +104,72 @@ function seedanceAudioDurationLimitFromText(text) {
104
104
  const parsed = Number(match[1]);
105
105
  return Number.isFinite(parsed) && parsed > 0 ? parsed : null;
106
106
  }
107
+ function jsonObjectsIn(text) {
108
+ const objects = [];
109
+ for (let start = text.indexOf('{'); start >= 0; start = text.indexOf('{', start + 1)) {
110
+ let depth = 0;
111
+ let inString = false;
112
+ for (let index = start; index < text.length; index++) {
113
+ const char = text[index];
114
+ if (inString) {
115
+ if (char === '\\')
116
+ index++;
117
+ else if (char === '"')
118
+ inString = false;
119
+ }
120
+ else if (char === '"')
121
+ inString = true;
122
+ else if (char === '{')
123
+ depth++;
124
+ else if (char === '}' && --depth === 0) {
125
+ try {
126
+ objects.push(JSON.parse(text.slice(start, index + 1)));
127
+ start = index;
128
+ }
129
+ catch {
130
+ }
131
+ break;
132
+ }
133
+ }
134
+ }
135
+ return objects;
136
+ }
137
+ function invalidParameterMessageIn(value) {
138
+ if (!value || typeof value !== 'object')
139
+ return null;
140
+ const { code, message } = value;
141
+ if (typeof code === 'string' && /^InvalidParameter(?:\.|$)/.test(code) && typeof message === 'string') {
142
+ return message;
143
+ }
144
+ for (const child of Object.values(value)) {
145
+ const found = invalidParameterMessageIn(child);
146
+ if (found !== null)
147
+ return found;
148
+ }
149
+ return null;
150
+ }
151
+ const SEEDANCE_VENDOR_REASON_MAX_LENGTH = 300;
107
152
  function seedanceInvalidParameterMessageFromText(text) {
108
153
  if (!text)
109
154
  return null;
110
- const match = text.match(/"(?:message|Message)"\s*:\s*"((?:[^"\\]|\\.)*)"/);
111
- if (!match?.[1])
112
- return null;
113
- let parsed = match[1];
114
- try {
115
- parsed = JSON.parse(`"${parsed}"`);
155
+ for (const object of jsonObjectsIn(text)) {
156
+ const raw = invalidParameterMessageIn(object);
157
+ if (raw === null)
158
+ continue;
159
+ const reason = raw
160
+ .replace(/\s*Request id:\s*\S+/gi, '')
161
+ .replace(/https?:\/\/\S+/gi, '')
162
+ .replace(/\s+/g, ' ')
163
+ .trim();
164
+ if (!reason)
165
+ return null;
166
+ if (reason.length <= SEEDANCE_VENDOR_REASON_MAX_LENGTH)
167
+ return reason;
168
+ const cut = reason.slice(0, SEEDANCE_VENDOR_REASON_MAX_LENGTH);
169
+ const lastSpace = cut.lastIndexOf(' ');
170
+ return `${lastSpace > 0 ? cut.slice(0, lastSpace) : cut}…`;
116
171
  }
117
- catch {
118
- }
119
- parsed = parsed.replace(/\s*Request id:\s*[A-Za-z0-9._-]+/i, '').trim();
120
- return parsed.length > 0 ? parsed : null;
172
+ return null;
121
173
  }
122
174
  const SEEDANCE_FRAME_REFERENCE_CONFLICT_PATTERN = /\bfirst\/last frame content cannot be mixed with reference media content\b/i;
123
175
  const SEEDANCE_SOCKET_MIXED_MODE_PATTERN = /\bSeedance rejects requests that combine first\/last-frame images with reference media\b/i;
@@ -1 +1 @@
1
- {"version":3,"file":"seedancePolicyErrors.js","sourceRoot":"","sources":["../../../src/tools/shared/seedancePolicyErrors.ts"],"names":[],"mappings":"AAMA,OAAO,EACL,oCAAoC,EACpC,oCAAoC,EACpC,kCAAkC,GAInC,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,wCAAwC,GACnD,uDAAuD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,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QACnE,OAAO;YACL,KAAK,EAAE,4BAA4B;YACnC,OAAO,EAAE,+BAA+B;YACxC,WAAW,EAAE,0BAA0B;YACvC,UAAU,EAAE,eAAe;YAC3B,WAAW,EAAE,IAAI;YACjB,iBAAiB,EAAE,iDAAiD;YACpE,eAAe,EAAE,kBAAkB;YACnC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACrD,CAAC;IACJ,CAAC;IACD,OAAO;QACL,KAAK,EAAE,4BAA4B;QACnC,OAAO,EAAE,yCAAyC;QAClD,WAAW,EAAE,0BAA0B;QACvC,UAAU,EAAE,eAAe;QAC3B,WAAW,EAAE,IAAI;QACjB,iBAAiB,EAAE,iFAAiF;QACpG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACrD,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sogni-ai/sogni-intelligence-client",
3
- "version": "4.19.0",
3
+ "version": "4.20.0",
4
4
  "description": "Public Sogni Intelligence client — Node.js convenience wrapper for the Sogni SDK plus the public-safe subset of @sogni/creative-agent contracts (ContractRegistry, AssetManifest, RunRecord, tool envelopes). For agent builders, third-party integrations, and downstream SDKs.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -167,7 +167,7 @@
167
167
  "dev": "tsc --watch",
168
168
  "prepare": "npm run codegen && husky",
169
169
  "prepublishOnly": "npm run build",
170
- "test": "node --import tsx test/basic-tests.ts && node --import tsx --test test/replay-redaction.test.ts test/chat-run-model-media.test.ts test/durable-workflow-content-filter.test.ts test/gpt-image-25.test.ts test/video-estimate-context.test.ts test/video-reference-detail.test.ts test/prompt-limits.test.ts test/reconnect-and-retry.test.ts test/batch-prompt-preservation.test.ts test/context-budget-check.test.ts test/context-user-history.test.ts test/seedance-25-uncensored.test.ts test/seedance-mini-uncensored.test.ts test/seedream-5-pro-uncensored.test.ts test/project-failure-reason.test.ts",
170
+ "test": "node --import tsx test/basic-tests.ts && node --import tsx --test test/replay-redaction.test.ts test/chat-run-model-media.test.ts test/durable-workflow-content-filter.test.ts test/gpt-image-25.test.ts test/video-estimate-context.test.ts test/video-reference-detail.test.ts test/prompt-limits.test.ts test/reconnect-and-retry.test.ts test/batch-prompt-preservation.test.ts test/context-budget-check.test.ts test/context-user-history.test.ts test/seedance-25-uncensored.test.ts test/seedance-mini-uncensored.test.ts test/seedream-5-pro-uncensored.test.ts test/seedance-vendor-reason.test.ts test/project-failure-reason.test.ts",
171
171
  "test:e2e": "node --import tsx test/e2e-test.ts",
172
172
  "test:e2e:llm": "SOGNI_E2E_SCOPE=llm node --import tsx test/e2e-test.ts",
173
173
  "typecheck:examples": "tsc --noEmit -p tsconfig.examples.json",