@sogni-ai/sogni-intelligence-client 2.1.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 (819) hide show
  1. package/.env.example +33 -0
  2. package/LICENSE +22 -0
  3. package/README.md +259 -0
  4. package/chatRun/index.d.ts +1 -0
  5. package/chatRun/index.js +2 -0
  6. package/context/index.d.ts +1 -0
  7. package/context/index.js +2 -0
  8. package/contracts/index.d.ts +1 -0
  9. package/contracts/index.js +2 -0
  10. package/dist/chatRun/costApproval.d.ts +10 -0
  11. package/dist/chatRun/costApproval.d.ts.map +1 -0
  12. package/dist/chatRun/costApproval.js +70 -0
  13. package/dist/chatRun/costApproval.js.map +1 -0
  14. package/dist/chatRun/index.d.ts +207 -0
  15. package/dist/chatRun/index.d.ts.map +1 -0
  16. package/dist/chatRun/index.js +350 -0
  17. package/dist/chatRun/index.js.map +1 -0
  18. package/dist/client/SogniClientWrapper.d.ts +86 -0
  19. package/dist/client/SogniClientWrapper.d.ts.map +1 -0
  20. package/dist/client/SogniClientWrapper.js +914 -0
  21. package/dist/client/SogniClientWrapper.js.map +1 -0
  22. package/dist/context/index.d.ts +56 -0
  23. package/dist/context/index.d.ts.map +1 -0
  24. package/dist/context/index.js +460 -0
  25. package/dist/context/index.js.map +1 -0
  26. package/dist/contracts/backboneDurableWorkflow.d.ts +82 -0
  27. package/dist/contracts/backboneDurableWorkflow.d.ts.map +1 -0
  28. package/dist/contracts/backboneDurableWorkflow.js +96 -0
  29. package/dist/contracts/backboneDurableWorkflow.js.map +1 -0
  30. package/dist/contracts/backboneToolCatalog.d.ts +7 -0
  31. package/dist/contracts/backboneToolCatalog.d.ts.map +1 -0
  32. package/dist/contracts/backboneToolCatalog.js +62 -0
  33. package/dist/contracts/backboneToolCatalog.js.map +1 -0
  34. package/dist/contracts/composeWorkflowTypes.d.ts +6 -0
  35. package/dist/contracts/composeWorkflowTypes.d.ts.map +1 -0
  36. package/dist/contracts/composeWorkflowTypes.js +3 -0
  37. package/dist/contracts/composeWorkflowTypes.js.map +1 -0
  38. package/dist/contracts/data/costEstimation.d.ts +5 -0
  39. package/dist/contracts/data/costEstimation.d.ts.map +1 -0
  40. package/dist/contracts/data/costEstimation.js +22 -0
  41. package/dist/contracts/data/costEstimation.js.map +1 -0
  42. package/dist/contracts/data/gatingPolicies.d.ts +6 -0
  43. package/dist/contracts/data/gatingPolicies.d.ts.map +1 -0
  44. package/dist/contracts/data/gatingPolicies.js +218 -0
  45. package/dist/contracts/data/gatingPolicies.js.map +1 -0
  46. package/dist/contracts/data/gatingPoliciesToolSurface.d.ts +7 -0
  47. package/dist/contracts/data/gatingPoliciesToolSurface.d.ts.map +1 -0
  48. package/dist/contracts/data/gatingPoliciesToolSurface.js +61 -0
  49. package/dist/contracts/data/gatingPoliciesToolSurface.js.map +1 -0
  50. package/dist/contracts/data/index.d.ts +14 -0
  51. package/dist/contracts/data/index.d.ts.map +1 -0
  52. package/dist/contracts/data/index.js +57 -0
  53. package/dist/contracts/data/index.js.map +1 -0
  54. package/dist/contracts/data/promptContracts.d.ts +5 -0
  55. package/dist/contracts/data/promptContracts.d.ts.map +1 -0
  56. package/dist/contracts/data/promptContracts.js +1286 -0
  57. package/dist/contracts/data/promptContracts.js.map +1 -0
  58. package/dist/contracts/data/repairRecipes.d.ts +5 -0
  59. package/dist/contracts/data/repairRecipes.d.ts.map +1 -0
  60. package/dist/contracts/data/repairRecipes.js +197 -0
  61. package/dist/contracts/data/repairRecipes.js.map +1 -0
  62. package/dist/contracts/data/toolCatalog.d.ts +31 -0
  63. package/dist/contracts/data/toolCatalog.d.ts.map +1 -0
  64. package/dist/contracts/data/toolCatalog.js +129 -0
  65. package/dist/contracts/data/toolCatalog.js.map +1 -0
  66. package/dist/contracts/data/toolCostMetadata.d.ts +16 -0
  67. package/dist/contracts/data/toolCostMetadata.d.ts.map +1 -0
  68. package/dist/contracts/data/toolCostMetadata.js +284 -0
  69. package/dist/contracts/data/toolCostMetadata.js.map +1 -0
  70. package/dist/contracts/data/toolPermissions.d.ts +27 -0
  71. package/dist/contracts/data/toolPermissions.d.ts.map +1 -0
  72. package/dist/contracts/data/toolPermissions.js +78 -0
  73. package/dist/contracts/data/toolPermissions.js.map +1 -0
  74. package/dist/contracts/evaluators.d.ts +94 -0
  75. package/dist/contracts/evaluators.d.ts.map +1 -0
  76. package/dist/contracts/evaluators.js +468 -0
  77. package/dist/contracts/evaluators.js.map +1 -0
  78. package/dist/contracts/hostedComposition.d.ts +85 -0
  79. package/dist/contracts/hostedComposition.d.ts.map +1 -0
  80. package/dist/contracts/hostedComposition.js +139 -0
  81. package/dist/contracts/hostedComposition.js.map +1 -0
  82. package/dist/contracts/hostedToolValidation.d.ts +47 -0
  83. package/dist/contracts/hostedToolValidation.d.ts.map +1 -0
  84. package/dist/contracts/hostedToolValidation.js +301 -0
  85. package/dist/contracts/hostedToolValidation.js.map +1 -0
  86. package/dist/contracts/idLoraPrompt.d.ts +13 -0
  87. package/dist/contracts/idLoraPrompt.d.ts.map +1 -0
  88. package/dist/contracts/idLoraPrompt.js +78 -0
  89. package/dist/contracts/idLoraPrompt.js.map +1 -0
  90. package/dist/contracts/imagePrompt.d.ts +16 -0
  91. package/dist/contracts/imagePrompt.d.ts.map +1 -0
  92. package/dist/contracts/imagePrompt.js +148 -0
  93. package/dist/contracts/imagePrompt.js.map +1 -0
  94. package/dist/contracts/index.d.ts +48 -0
  95. package/dist/contracts/index.d.ts.map +1 -0
  96. package/dist/contracts/index.js +156 -0
  97. package/dist/contracts/index.js.map +1 -0
  98. package/dist/contracts/musicComposition.d.ts +17 -0
  99. package/dist/contracts/musicComposition.d.ts.map +1 -0
  100. package/dist/contracts/musicComposition.js +188 -0
  101. package/dist/contracts/musicComposition.js.map +1 -0
  102. package/dist/contracts/promptContract.d.ts +11 -0
  103. package/dist/contracts/promptContract.d.ts.map +1 -0
  104. package/dist/contracts/promptContract.js +37 -0
  105. package/dist/contracts/promptContract.js.map +1 -0
  106. package/dist/contracts/promptOverrideMarker.d.ts +2 -0
  107. package/dist/contracts/promptOverrideMarker.d.ts.map +1 -0
  108. package/dist/contracts/promptOverrideMarker.js +5 -0
  109. package/dist/contracts/promptOverrideMarker.js.map +1 -0
  110. package/dist/contracts/randomThemes.d.ts +5 -0
  111. package/dist/contracts/randomThemes.d.ts.map +1 -0
  112. package/dist/contracts/randomThemes.js +159 -0
  113. package/dist/contracts/randomThemes.js.map +1 -0
  114. package/dist/contracts/registry.d.ts +29 -0
  115. package/dist/contracts/registry.d.ts.map +1 -0
  116. package/dist/contracts/registry.js +104 -0
  117. package/dist/contracts/registry.js.map +1 -0
  118. package/dist/contracts/repairRecipe.d.ts +14 -0
  119. package/dist/contracts/repairRecipe.d.ts.map +1 -0
  120. package/dist/contracts/repairRecipe.js +38 -0
  121. package/dist/contracts/repairRecipe.js.map +1 -0
  122. package/dist/contracts/storyboard.d.ts +113 -0
  123. package/dist/contracts/storyboard.d.ts.map +1 -0
  124. package/dist/contracts/storyboard.js +7 -0
  125. package/dist/contracts/storyboard.js.map +1 -0
  126. package/dist/contracts/telemetry.d.ts +57 -0
  127. package/dist/contracts/telemetry.d.ts.map +1 -0
  128. package/dist/contracts/telemetry.js +37 -0
  129. package/dist/contracts/telemetry.js.map +1 -0
  130. package/dist/contracts/toolGatingPolicy.d.ts +19 -0
  131. package/dist/contracts/toolGatingPolicy.d.ts.map +1 -0
  132. package/dist/contracts/toolGatingPolicy.js +63 -0
  133. package/dist/contracts/toolGatingPolicy.js.map +1 -0
  134. package/dist/contracts/toolPromptMarkers.d.ts +9 -0
  135. package/dist/contracts/toolPromptMarkers.d.ts.map +1 -0
  136. package/dist/contracts/toolPromptMarkers.js +13 -0
  137. package/dist/contracts/toolPromptMarkers.js.map +1 -0
  138. package/dist/contracts/toolSurface.d.ts +46 -0
  139. package/dist/contracts/toolSurface.d.ts.map +1 -0
  140. package/dist/contracts/toolSurface.js +119 -0
  141. package/dist/contracts/toolSurface.js.map +1 -0
  142. package/dist/contracts/turnPolicy.d.ts +22 -0
  143. package/dist/contracts/turnPolicy.d.ts.map +1 -0
  144. package/dist/contracts/turnPolicy.js +16 -0
  145. package/dist/contracts/turnPolicy.js.map +1 -0
  146. package/dist/contracts/videoComposition.d.ts +35 -0
  147. package/dist/contracts/videoComposition.d.ts.map +1 -0
  148. package/dist/contracts/videoComposition.js +224 -0
  149. package/dist/contracts/videoComposition.js.map +1 -0
  150. package/dist/index.d.ts +11 -0
  151. package/dist/index.d.ts.map +1 -0
  152. package/dist/index.js +59 -0
  153. package/dist/index.js.map +1 -0
  154. package/dist/media/aspectRatio.d.ts +15 -0
  155. package/dist/media/aspectRatio.d.ts.map +1 -0
  156. package/dist/media/aspectRatio.js +72 -0
  157. package/dist/media/aspectRatio.js.map +1 -0
  158. package/dist/media/audioReference.d.ts +57 -0
  159. package/dist/media/audioReference.d.ts.map +1 -0
  160. package/dist/media/audioReference.js +194 -0
  161. package/dist/media/audioReference.js.map +1 -0
  162. package/dist/media/cameraAngle.d.ts +170 -0
  163. package/dist/media/cameraAngle.d.ts.map +1 -0
  164. package/dist/media/cameraAngle.js +48 -0
  165. package/dist/media/cameraAngle.js.map +1 -0
  166. package/dist/media/characterSheet.d.ts +9 -0
  167. package/dist/media/characterSheet.d.ts.map +1 -0
  168. package/dist/media/characterSheet.js +54 -0
  169. package/dist/media/characterSheet.js.map +1 -0
  170. package/dist/media/danceMontage.d.ts +18 -0
  171. package/dist/media/danceMontage.d.ts.map +1 -0
  172. package/dist/media/danceMontage.js +34 -0
  173. package/dist/media/danceMontage.js.map +1 -0
  174. package/dist/media/enhancementProfiles.d.ts +158 -0
  175. package/dist/media/enhancementProfiles.d.ts.map +1 -0
  176. package/dist/media/enhancementProfiles.js +224 -0
  177. package/dist/media/enhancementProfiles.js.map +1 -0
  178. package/dist/media/generationJob.d.ts +81 -0
  179. package/dist/media/generationJob.d.ts.map +1 -0
  180. package/dist/media/generationJob.js +91 -0
  181. package/dist/media/generationJob.js.map +1 -0
  182. package/dist/media/gptImage.d.ts +21 -0
  183. package/dist/media/gptImage.d.ts.map +1 -0
  184. package/dist/media/gptImage.js +162 -0
  185. package/dist/media/gptImage.js.map +1 -0
  186. package/dist/media/imageDimensions.d.ts +24 -0
  187. package/dist/media/imageDimensions.d.ts.map +1 -0
  188. package/dist/media/imageDimensions.js +64 -0
  189. package/dist/media/imageDimensions.js.map +1 -0
  190. package/dist/media/index.d.ts +16 -0
  191. package/dist/media/index.d.ts.map +1 -0
  192. package/dist/media/index.js +32 -0
  193. package/dist/media/index.js.map +1 -0
  194. package/dist/media/musicSettings.d.ts +86 -0
  195. package/dist/media/musicSettings.d.ts.map +1 -0
  196. package/dist/media/musicSettings.js +234 -0
  197. package/dist/media/musicSettings.js.map +1 -0
  198. package/dist/media/vendorModelPremium.d.ts +21 -0
  199. package/dist/media/vendorModelPremium.d.ts.map +1 -0
  200. package/dist/media/vendorModelPremium.js +89 -0
  201. package/dist/media/vendorModelPremium.js.map +1 -0
  202. package/dist/media/videoAppSettings.d.ts +41 -0
  203. package/dist/media/videoAppSettings.d.ts.map +1 -0
  204. package/dist/media/videoAppSettings.js +128 -0
  205. package/dist/media/videoAppSettings.js.map +1 -0
  206. package/dist/media/videoContentLimit.d.ts +15 -0
  207. package/dist/media/videoContentLimit.d.ts.map +1 -0
  208. package/dist/media/videoContentLimit.js +169 -0
  209. package/dist/media/videoContentLimit.js.map +1 -0
  210. package/dist/media/videoReference.d.ts +35 -0
  211. package/dist/media/videoReference.d.ts.map +1 -0
  212. package/dist/media/videoReference.js +77 -0
  213. package/dist/media/videoReference.js.map +1 -0
  214. package/dist/media/videoSettings.d.ts +50 -0
  215. package/dist/media/videoSettings.d.ts.map +1 -0
  216. package/dist/media/videoSettings.js +200 -0
  217. package/dist/media/videoSettings.js.map +1 -0
  218. package/dist/openai-tools/_manifests.generated.d.ts +4 -0
  219. package/dist/openai-tools/_manifests.generated.d.ts.map +1 -0
  220. package/dist/openai-tools/_manifests.generated.js +1792 -0
  221. package/dist/openai-tools/_manifests.generated.js.map +1 -0
  222. package/dist/openai-tools/app-tools.json +297 -0
  223. package/dist/openai-tools/composition-tools.json +228 -0
  224. package/dist/openai-tools/generation-tools.json +1263 -0
  225. package/dist/openai-tools/index.d.ts +17 -0
  226. package/dist/openai-tools/index.d.ts.map +1 -0
  227. package/dist/openai-tools/index.js +32 -0
  228. package/dist/openai-tools/index.js.map +1 -0
  229. package/dist/public-skill-runtime/index.d.ts +1222 -0
  230. package/dist/public-skill-runtime/index.d.ts.map +1 -0
  231. package/dist/public-skill-runtime/index.js +6492 -0
  232. package/dist/public-skill-runtime/index.js.map +1 -0
  233. package/dist/replay/index.d.ts +4 -0
  234. package/dist/replay/index.d.ts.map +1 -0
  235. package/dist/replay/index.js +12 -0
  236. package/dist/replay/index.js.map +1 -0
  237. package/dist/replay/redact.d.ts +7 -0
  238. package/dist/replay/redact.d.ts.map +1 -0
  239. package/dist/replay/redact.js +108 -0
  240. package/dist/replay/redact.js.map +1 -0
  241. package/dist/replay/types.d.ts +61 -0
  242. package/dist/replay/types.d.ts.map +1 -0
  243. package/dist/replay/types.js +24 -0
  244. package/dist/replay/types.js.map +1 -0
  245. package/dist/runtime/chatTypes.d.ts +47 -0
  246. package/dist/runtime/chatTypes.d.ts.map +1 -0
  247. package/dist/runtime/chatTypes.js +3 -0
  248. package/dist/runtime/chatTypes.js.map +1 -0
  249. package/dist/runtime/durableWorkflowClient.d.ts +80 -0
  250. package/dist/runtime/durableWorkflowClient.d.ts.map +1 -0
  251. package/dist/runtime/durableWorkflowClient.js +312 -0
  252. package/dist/runtime/durableWorkflowClient.js.map +1 -0
  253. package/dist/runtime/index.d.ts +3 -0
  254. package/dist/runtime/index.d.ts.map +1 -0
  255. package/dist/runtime/index.js +18 -0
  256. package/dist/runtime/index.js.map +1 -0
  257. package/dist/schemas/errors/error.schema.json +21 -0
  258. package/dist/schemas/errors/repair-control.schema.json +40 -0
  259. package/dist/schemas/events/artifact-reference.schema.json +22 -0
  260. package/dist/schemas/events/progress-event.schema.json +28 -0
  261. package/dist/schemas/events/workflow-event.schema.json +22 -0
  262. package/dist/schemas/storyboards/storyboard-planning-contract.schema.json +108 -0
  263. package/dist/schemas/tools/add_subtitles.schema.json +77 -0
  264. package/dist/schemas/tools/animate_photo.schema.json +104 -0
  265. package/dist/schemas/tools/apply_style.schema.json +37 -0
  266. package/dist/schemas/tools/change_angle.schema.json +30 -0
  267. package/dist/schemas/tools/compose_instrumental.schema.json +24 -0
  268. package/dist/schemas/tools/compose_lyrics.schema.json +28 -0
  269. package/dist/schemas/tools/compose_script.schema.json +68 -0
  270. package/dist/schemas/tools/compose_workflow.schema.json +67 -0
  271. package/dist/schemas/tools/compose_workflow_template.schema.json +156 -0
  272. package/dist/schemas/tools/dance_montage.schema.json +47 -0
  273. package/dist/schemas/tools/edit_image.schema.json +74 -0
  274. package/dist/schemas/tools/enhance_prompt.schema.json +76 -0
  275. package/dist/schemas/tools/extend_video.schema.json +42 -0
  276. package/dist/schemas/tools/generate_image.schema.json +104 -0
  277. package/dist/schemas/tools/generate_music.schema.json +62 -0
  278. package/dist/schemas/tools/generate_video.schema.json +97 -0
  279. package/dist/schemas/tools/orbit_video.schema.json +70 -0
  280. package/dist/schemas/tools/overlay_video.schema.json +126 -0
  281. package/dist/schemas/tools/refine_result.schema.json +43 -0
  282. package/dist/schemas/tools/replace_video_segment.schema.json +60 -0
  283. package/dist/schemas/tools/restore_photo.schema.json +47 -0
  284. package/dist/schemas/tools/sound_to_video.schema.json +70 -0
  285. package/dist/schemas/tools/stitch_video.schema.json +52 -0
  286. package/dist/schemas/tools/video_to_video.schema.json +77 -0
  287. package/dist/schemas/workflows/durable-workflow-run.schema.json +165 -0
  288. package/dist/schemas/workflows/durable-workflow-step.schema.json +141 -0
  289. package/dist/skill-runtime-source/crossSurfaceParity.d.ts +23 -0
  290. package/dist/skill-runtime-source/crossSurfaceParity.d.ts.map +1 -0
  291. package/dist/skill-runtime-source/crossSurfaceParity.js +472 -0
  292. package/dist/skill-runtime-source/crossSurfaceParity.js.map +1 -0
  293. package/dist/skill-runtime-source/index.d.ts +4 -0
  294. package/dist/skill-runtime-source/index.d.ts.map +1 -0
  295. package/dist/skill-runtime-source/index.js +20 -0
  296. package/dist/skill-runtime-source/index.js.map +1 -0
  297. package/dist/skill-runtime-source/seedanceAudioWindow.d.ts +8 -0
  298. package/dist/skill-runtime-source/seedanceAudioWindow.d.ts.map +1 -0
  299. package/dist/skill-runtime-source/seedanceAudioWindow.js +52 -0
  300. package/dist/skill-runtime-source/seedanceAudioWindow.js.map +1 -0
  301. package/dist/skill-runtime-source/workflowStatus.d.ts +17 -0
  302. package/dist/skill-runtime-source/workflowStatus.d.ts.map +1 -0
  303. package/dist/skill-runtime-source/workflowStatus.js +353 -0
  304. package/dist/skill-runtime-source/workflowStatus.js.map +1 -0
  305. package/dist/skills/asset_reference_management/index.d.ts +6 -0
  306. package/dist/skills/asset_reference_management/index.d.ts.map +1 -0
  307. package/dist/skills/asset_reference_management/index.js +18 -0
  308. package/dist/skills/asset_reference_management/index.js.map +1 -0
  309. package/dist/skills/asset_reference_management/manifest.d.ts +42 -0
  310. package/dist/skills/asset_reference_management/manifest.d.ts.map +1 -0
  311. package/dist/skills/asset_reference_management/manifest.js +237 -0
  312. package/dist/skills/asset_reference_management/manifest.js.map +1 -0
  313. package/dist/skills/asset_reference_management/modelRefRegistry.d.ts +24 -0
  314. package/dist/skills/asset_reference_management/modelRefRegistry.d.ts.map +1 -0
  315. package/dist/skills/asset_reference_management/modelRefRegistry.js +136 -0
  316. package/dist/skills/asset_reference_management/modelRefRegistry.js.map +1 -0
  317. package/dist/skills/asset_reference_management/types.d.ts +31 -0
  318. package/dist/skills/asset_reference_management/types.d.ts.map +1 -0
  319. package/dist/skills/asset_reference_management/types.js +3 -0
  320. package/dist/skills/asset_reference_management/types.js.map +1 -0
  321. package/dist/tools/definitions/add-subtitles/definition.d.ts +4 -0
  322. package/dist/tools/definitions/add-subtitles/definition.d.ts.map +1 -0
  323. package/dist/tools/definitions/add-subtitles/definition.js +83 -0
  324. package/dist/tools/definitions/add-subtitles/definition.js.map +1 -0
  325. package/dist/tools/definitions/animate-photo/definition.d.ts +3 -0
  326. package/dist/tools/definitions/animate-photo/definition.d.ts.map +1 -0
  327. package/dist/tools/definitions/animate-photo/definition.js +124 -0
  328. package/dist/tools/definitions/animate-photo/definition.js.map +1 -0
  329. package/dist/tools/definitions/apply-style/definition.d.ts +3 -0
  330. package/dist/tools/definitions/apply-style/definition.d.ts.map +1 -0
  331. package/dist/tools/definitions/apply-style/definition.js +50 -0
  332. package/dist/tools/definitions/apply-style/definition.js.map +1 -0
  333. package/dist/tools/definitions/change-angle/definition.d.ts +3 -0
  334. package/dist/tools/definitions/change-angle/definition.d.ts.map +1 -0
  335. package/dist/tools/definitions/change-angle/definition.js +49 -0
  336. package/dist/tools/definitions/change-angle/definition.js.map +1 -0
  337. package/dist/tools/definitions/dance-montage/dances.d.ts +11 -0
  338. package/dist/tools/definitions/dance-montage/dances.d.ts.map +1 -0
  339. package/dist/tools/definitions/dance-montage/dances.js +90 -0
  340. package/dist/tools/definitions/dance-montage/dances.js.map +1 -0
  341. package/dist/tools/definitions/dance-montage/definition.d.ts +3 -0
  342. package/dist/tools/definitions/dance-montage/definition.d.ts.map +1 -0
  343. package/dist/tools/definitions/dance-montage/definition.js +45 -0
  344. package/dist/tools/definitions/dance-montage/definition.js.map +1 -0
  345. package/dist/tools/definitions/edit-image/definition.d.ts +3 -0
  346. package/dist/tools/definitions/edit-image/definition.d.ts.map +1 -0
  347. package/dist/tools/definitions/edit-image/definition.js +128 -0
  348. package/dist/tools/definitions/edit-image/definition.js.map +1 -0
  349. package/dist/tools/definitions/extend-video/definition.d.ts +3 -0
  350. package/dist/tools/definitions/extend-video/definition.d.ts.map +1 -0
  351. package/dist/tools/definitions/extend-video/definition.js +51 -0
  352. package/dist/tools/definitions/extend-video/definition.js.map +1 -0
  353. package/dist/tools/definitions/generate-image/definition.d.ts +3 -0
  354. package/dist/tools/definitions/generate-image/definition.d.ts.map +1 -0
  355. package/dist/tools/definitions/generate-image/definition.js +107 -0
  356. package/dist/tools/definitions/generate-image/definition.js.map +1 -0
  357. package/dist/tools/definitions/generate-music/definition.d.ts +3 -0
  358. package/dist/tools/definitions/generate-music/definition.d.ts.map +1 -0
  359. package/dist/tools/definitions/generate-music/definition.js +75 -0
  360. package/dist/tools/definitions/generate-music/definition.js.map +1 -0
  361. package/dist/tools/definitions/generate-video/definition.d.ts +3 -0
  362. package/dist/tools/definitions/generate-video/definition.d.ts.map +1 -0
  363. package/dist/tools/definitions/generate-video/definition.js +120 -0
  364. package/dist/tools/definitions/generate-video/definition.js.map +1 -0
  365. package/dist/tools/definitions/index.d.ts +25 -0
  366. package/dist/tools/definitions/index.d.ts.map +1 -0
  367. package/dist/tools/definitions/index.js +66 -0
  368. package/dist/tools/definitions/index.js.map +1 -0
  369. package/dist/tools/definitions/orbit-video/definition.d.ts +3 -0
  370. package/dist/tools/definitions/orbit-video/definition.d.ts.map +1 -0
  371. package/dist/tools/definitions/orbit-video/definition.js +103 -0
  372. package/dist/tools/definitions/orbit-video/definition.js.map +1 -0
  373. package/dist/tools/definitions/overlay-video/definition.d.ts +4 -0
  374. package/dist/tools/definitions/overlay-video/definition.d.ts.map +1 -0
  375. package/dist/tools/definitions/overlay-video/definition.js +142 -0
  376. package/dist/tools/definitions/overlay-video/definition.js.map +1 -0
  377. package/dist/tools/definitions/refine-result/definition.d.ts +3 -0
  378. package/dist/tools/definitions/refine-result/definition.d.ts.map +1 -0
  379. package/dist/tools/definitions/refine-result/definition.js +56 -0
  380. package/dist/tools/definitions/refine-result/definition.js.map +1 -0
  381. package/dist/tools/definitions/replace-video-segment/definition.d.ts +3 -0
  382. package/dist/tools/definitions/replace-video-segment/definition.d.ts.map +1 -0
  383. package/dist/tools/definitions/replace-video-segment/definition.js +65 -0
  384. package/dist/tools/definitions/replace-video-segment/definition.js.map +1 -0
  385. package/dist/tools/definitions/restore-photo/definition.d.ts +3 -0
  386. package/dist/tools/definitions/restore-photo/definition.d.ts.map +1 -0
  387. package/dist/tools/definitions/restore-photo/definition.js +58 -0
  388. package/dist/tools/definitions/restore-photo/definition.js.map +1 -0
  389. package/dist/tools/definitions/sound-to-video/definition.d.ts +3 -0
  390. package/dist/tools/definitions/sound-to-video/definition.d.ts.map +1 -0
  391. package/dist/tools/definitions/sound-to-video/definition.js +91 -0
  392. package/dist/tools/definitions/sound-to-video/definition.js.map +1 -0
  393. package/dist/tools/definitions/stitch-video/definition.d.ts +4 -0
  394. package/dist/tools/definitions/stitch-video/definition.d.ts.map +1 -0
  395. package/dist/tools/definitions/stitch-video/definition.js +89 -0
  396. package/dist/tools/definitions/stitch-video/definition.js.map +1 -0
  397. package/dist/tools/definitions/types.d.ts +15 -0
  398. package/dist/tools/definitions/types.d.ts.map +1 -0
  399. package/dist/tools/definitions/types.js +3 -0
  400. package/dist/tools/definitions/types.js.map +1 -0
  401. package/dist/tools/definitions/video-to-video/definition.d.ts +3 -0
  402. package/dist/tools/definitions/video-to-video/definition.d.ts.map +1 -0
  403. package/dist/tools/definitions/video-to-video/definition.js +101 -0
  404. package/dist/tools/definitions/video-to-video/definition.js.map +1 -0
  405. package/dist/tools/index.d.ts +22 -0
  406. package/dist/tools/index.d.ts.map +1 -0
  407. package/dist/tools/index.js +83 -0
  408. package/dist/tools/index.js.map +1 -0
  409. package/dist/tools/normalizeArgs.d.ts +2 -0
  410. package/dist/tools/normalizeArgs.d.ts.map +1 -0
  411. package/dist/tools/normalizeArgs.js +40 -0
  412. package/dist/tools/normalizeArgs.js.map +1 -0
  413. package/dist/tools/result.d.ts +47 -0
  414. package/dist/tools/result.d.ts.map +1 -0
  415. package/dist/tools/result.js +38 -0
  416. package/dist/tools/result.js.map +1 -0
  417. package/dist/tools/shared/downloadFilename.d.ts +18 -0
  418. package/dist/tools/shared/downloadFilename.d.ts.map +1 -0
  419. package/dist/tools/shared/downloadFilename.js +157 -0
  420. package/dist/tools/shared/downloadFilename.js.map +1 -0
  421. package/dist/tools/shared/dynamicPromptBranches.d.ts +20 -0
  422. package/dist/tools/shared/dynamicPromptBranches.d.ts.map +1 -0
  423. package/dist/tools/shared/dynamicPromptBranches.js +193 -0
  424. package/dist/tools/shared/dynamicPromptBranches.js.map +1 -0
  425. package/dist/tools/shared/errorClassification.d.ts +15 -0
  426. package/dist/tools/shared/errorClassification.d.ts.map +1 -0
  427. package/dist/tools/shared/errorClassification.js +78 -0
  428. package/dist/tools/shared/errorClassification.js.map +1 -0
  429. package/dist/tools/shared/imageEncoding.d.ts +2 -0
  430. package/dist/tools/shared/imageEncoding.d.ts.map +1 -0
  431. package/dist/tools/shared/imageEncoding.js +11 -0
  432. package/dist/tools/shared/imageEncoding.js.map +1 -0
  433. package/dist/tools/shared/llmHelpers.d.ts +14 -0
  434. package/dist/tools/shared/llmHelpers.d.ts.map +1 -0
  435. package/dist/tools/shared/llmHelpers.js +145 -0
  436. package/dist/tools/shared/llmHelpers.js.map +1 -0
  437. package/dist/tools/shared/modelRegistry.d.ts +10 -0
  438. package/dist/tools/shared/modelRegistry.d.ts.map +1 -0
  439. package/dist/tools/shared/modelRegistry.js +98 -0
  440. package/dist/tools/shared/modelRegistry.js.map +1 -0
  441. package/dist/tools/shared/multiImageIntent.d.ts +2 -0
  442. package/dist/tools/shared/multiImageIntent.d.ts.map +1 -0
  443. package/dist/tools/shared/multiImageIntent.js +13 -0
  444. package/dist/tools/shared/multiImageIntent.js.map +1 -0
  445. package/dist/tools/shared/numberOfVariationsAlignment.d.ts +2 -0
  446. package/dist/tools/shared/numberOfVariationsAlignment.d.ts.map +1 -0
  447. package/dist/tools/shared/numberOfVariationsAlignment.js +37 -0
  448. package/dist/tools/shared/numberOfVariationsAlignment.js.map +1 -0
  449. package/dist/tools/shared/policyChecks.d.ts +25 -0
  450. package/dist/tools/shared/policyChecks.d.ts.map +1 -0
  451. package/dist/tools/shared/policyChecks.js +79 -0
  452. package/dist/tools/shared/policyChecks.js.map +1 -0
  453. package/dist/tools/shared/promptRefinementCache.d.ts +10 -0
  454. package/dist/tools/shared/promptRefinementCache.d.ts.map +1 -0
  455. package/dist/tools/shared/promptRefinementCache.js +81 -0
  456. package/dist/tools/shared/promptRefinementCache.js.map +1 -0
  457. package/dist/tools/shared/promptSanitizer.d.ts +2 -0
  458. package/dist/tools/shared/promptSanitizer.d.ts.map +1 -0
  459. package/dist/tools/shared/promptSanitizer.js +73 -0
  460. package/dist/tools/shared/promptSanitizer.js.map +1 -0
  461. package/dist/tools/shared/seedancePolicyErrors.d.ts +33 -0
  462. package/dist/tools/shared/seedancePolicyErrors.d.ts.map +1 -0
  463. package/dist/tools/shared/seedancePolicyErrors.js +239 -0
  464. package/dist/tools/shared/seedancePolicyErrors.js.map +1 -0
  465. package/dist/tools/shared/slotFailureSummary.d.ts +7 -0
  466. package/dist/tools/shared/slotFailureSummary.d.ts.map +1 -0
  467. package/dist/tools/shared/slotFailureSummary.js +63 -0
  468. package/dist/tools/shared/slotFailureSummary.js.map +1 -0
  469. package/dist/tools/shared/visionDescriptionCache.d.ts +5 -0
  470. package/dist/tools/shared/visionDescriptionCache.d.ts.map +1 -0
  471. package/dist/tools/shared/visionDescriptionCache.js +35 -0
  472. package/dist/tools/shared/visionDescriptionCache.js.map +1 -0
  473. package/dist/types/index.d.ts +221 -0
  474. package/dist/types/index.d.ts.map +1 -0
  475. package/dist/types/index.js +34 -0
  476. package/dist/types/index.js.map +1 -0
  477. package/dist/utils/errors.d.ts +38 -0
  478. package/dist/utils/errors.d.ts.map +1 -0
  479. package/dist/utils/errors.js +99 -0
  480. package/dist/utils/errors.js.map +1 -0
  481. package/dist/utils/helpers.d.ts +36 -0
  482. package/dist/utils/helpers.d.ts.map +1 -0
  483. package/dist/utils/helpers.js +445 -0
  484. package/dist/utils/helpers.js.map +1 -0
  485. package/dist/workflows/bindings.d.ts +23 -0
  486. package/dist/workflows/bindings.d.ts.map +1 -0
  487. package/dist/workflows/bindings.js +220 -0
  488. package/dist/workflows/bindings.js.map +1 -0
  489. package/dist/workflows/executor-ports.d.ts +11 -0
  490. package/dist/workflows/executor-ports.d.ts.map +1 -0
  491. package/dist/workflows/executor-ports.js +3 -0
  492. package/dist/workflows/executor-ports.js.map +1 -0
  493. package/dist/workflows/executor.d.ts +17 -0
  494. package/dist/workflows/executor.d.ts.map +1 -0
  495. package/dist/workflows/executor.js +526 -0
  496. package/dist/workflows/executor.js.map +1 -0
  497. package/dist/workflows/index.d.ts +11 -0
  498. package/dist/workflows/index.d.ts.map +1 -0
  499. package/dist/workflows/index.js +48 -0
  500. package/dist/workflows/index.js.map +1 -0
  501. package/dist/workflows/primitives/index.d.ts +3 -0
  502. package/dist/workflows/primitives/index.d.ts.map +1 -0
  503. package/dist/workflows/primitives/index.js +19 -0
  504. package/dist/workflows/primitives/index.js.map +1 -0
  505. package/dist/workflows/primitives/retryUntilCondition.d.ts +39 -0
  506. package/dist/workflows/primitives/retryUntilCondition.d.ts.map +1 -0
  507. package/dist/workflows/primitives/retryUntilCondition.js +102 -0
  508. package/dist/workflows/primitives/retryUntilCondition.js.map +1 -0
  509. package/dist/workflows/primitives/validateWithRubric.d.ts +28 -0
  510. package/dist/workflows/primitives/validateWithRubric.d.ts.map +1 -0
  511. package/dist/workflows/primitives/validateWithRubric.js +148 -0
  512. package/dist/workflows/primitives/validateWithRubric.js.map +1 -0
  513. package/dist/workflows/summarize.d.ts +7 -0
  514. package/dist/workflows/summarize.d.ts.map +1 -0
  515. package/dist/workflows/summarize.js +54 -0
  516. package/dist/workflows/summarize.js.map +1 -0
  517. package/dist/workflows/types.d.ts +302 -0
  518. package/dist/workflows/types.d.ts.map +1 -0
  519. package/dist/workflows/types.js +3 -0
  520. package/dist/workflows/types.js.map +1 -0
  521. package/dist/workflows/validation.d.ts +10 -0
  522. package/dist/workflows/validation.d.ts.map +1 -0
  523. package/dist/workflows/validation.js +340 -0
  524. package/dist/workflows/validation.js.map +1 -0
  525. package/dist-esm/chatRun/costApproval.js +64 -0
  526. package/dist-esm/chatRun/costApproval.js.map +1 -0
  527. package/dist-esm/chatRun/index.js +327 -0
  528. package/dist-esm/chatRun/index.js.map +1 -0
  529. package/dist-esm/client/SogniClientWrapper.js +877 -0
  530. package/dist-esm/client/SogniClientWrapper.js.map +1 -0
  531. package/dist-esm/context/index.js +453 -0
  532. package/dist-esm/context/index.js.map +1 -0
  533. package/dist-esm/contracts/backboneDurableWorkflow.js +90 -0
  534. package/dist-esm/contracts/backboneDurableWorkflow.js.map +1 -0
  535. package/dist-esm/contracts/backboneToolCatalog.js +59 -0
  536. package/dist-esm/contracts/backboneToolCatalog.js.map +1 -0
  537. package/dist-esm/contracts/composeWorkflowTypes.js +2 -0
  538. package/dist-esm/contracts/composeWorkflowTypes.js.map +1 -0
  539. package/dist-esm/contracts/data/costEstimation.js +18 -0
  540. package/dist-esm/contracts/data/costEstimation.js.map +1 -0
  541. package/dist-esm/contracts/data/gatingPolicies.js +214 -0
  542. package/dist-esm/contracts/data/gatingPolicies.js.map +1 -0
  543. package/dist-esm/contracts/data/gatingPoliciesToolSurface.js +57 -0
  544. package/dist-esm/contracts/data/gatingPoliciesToolSurface.js.map +1 -0
  545. package/dist-esm/contracts/data/index.js +23 -0
  546. package/dist-esm/contracts/data/index.js.map +1 -0
  547. package/dist-esm/contracts/data/promptContracts.js +1282 -0
  548. package/dist-esm/contracts/data/promptContracts.js.map +1 -0
  549. package/dist-esm/contracts/data/repairRecipes.js +193 -0
  550. package/dist-esm/contracts/data/repairRecipes.js.map +1 -0
  551. package/dist-esm/contracts/data/toolCatalog.js +122 -0
  552. package/dist-esm/contracts/data/toolCatalog.js.map +1 -0
  553. package/dist-esm/contracts/data/toolCostMetadata.js +277 -0
  554. package/dist-esm/contracts/data/toolCostMetadata.js.map +1 -0
  555. package/dist-esm/contracts/data/toolPermissions.js +70 -0
  556. package/dist-esm/contracts/data/toolPermissions.js.map +1 -0
  557. package/dist-esm/contracts/evaluators.js +463 -0
  558. package/dist-esm/contracts/evaluators.js.map +1 -0
  559. package/dist-esm/contracts/hostedComposition.js +128 -0
  560. package/dist-esm/contracts/hostedComposition.js.map +1 -0
  561. package/dist-esm/contracts/hostedToolValidation.js +296 -0
  562. package/dist-esm/contracts/hostedToolValidation.js.map +1 -0
  563. package/dist-esm/contracts/idLoraPrompt.js +72 -0
  564. package/dist-esm/contracts/idLoraPrompt.js.map +1 -0
  565. package/dist-esm/contracts/imagePrompt.js +143 -0
  566. package/dist-esm/contracts/imagePrompt.js.map +1 -0
  567. package/dist-esm/contracts/index.js +27 -0
  568. package/dist-esm/contracts/index.js.map +1 -0
  569. package/dist-esm/contracts/musicComposition.js +182 -0
  570. package/dist-esm/contracts/musicComposition.js.map +1 -0
  571. package/dist-esm/contracts/promptContract.js +34 -0
  572. package/dist-esm/contracts/promptContract.js.map +1 -0
  573. package/dist-esm/contracts/promptOverrideMarker.js +2 -0
  574. package/dist-esm/contracts/promptOverrideMarker.js.map +1 -0
  575. package/dist-esm/contracts/randomThemes.js +154 -0
  576. package/dist-esm/contracts/randomThemes.js.map +1 -0
  577. package/dist-esm/contracts/registry.js +100 -0
  578. package/dist-esm/contracts/registry.js.map +1 -0
  579. package/dist-esm/contracts/repairRecipe.js +35 -0
  580. package/dist-esm/contracts/repairRecipe.js.map +1 -0
  581. package/dist-esm/contracts/storyboard.js +4 -0
  582. package/dist-esm/contracts/storyboard.js.map +1 -0
  583. package/dist-esm/contracts/telemetry.js +33 -0
  584. package/dist-esm/contracts/telemetry.js.map +1 -0
  585. package/dist-esm/contracts/toolGatingPolicy.js +60 -0
  586. package/dist-esm/contracts/toolGatingPolicy.js.map +1 -0
  587. package/dist-esm/contracts/toolPromptMarkers.js +10 -0
  588. package/dist-esm/contracts/toolPromptMarkers.js.map +1 -0
  589. package/dist-esm/contracts/toolSurface.js +110 -0
  590. package/dist-esm/contracts/toolSurface.js.map +1 -0
  591. package/dist-esm/contracts/turnPolicy.js +13 -0
  592. package/dist-esm/contracts/turnPolicy.js.map +1 -0
  593. package/dist-esm/contracts/videoComposition.js +216 -0
  594. package/dist-esm/contracts/videoComposition.js.map +1 -0
  595. package/dist-esm/index.js +10 -0
  596. package/dist-esm/index.js.map +1 -0
  597. package/dist-esm/media/aspectRatio.js +65 -0
  598. package/dist-esm/media/aspectRatio.js.map +1 -0
  599. package/dist-esm/media/audioReference.js +186 -0
  600. package/dist-esm/media/audioReference.js.map +1 -0
  601. package/dist-esm/media/cameraAngle.js +41 -0
  602. package/dist-esm/media/cameraAngle.js.map +1 -0
  603. package/dist-esm/media/characterSheet.js +48 -0
  604. package/dist-esm/media/characterSheet.js.map +1 -0
  605. package/dist-esm/media/danceMontage.js +29 -0
  606. package/dist-esm/media/danceMontage.js.map +1 -0
  607. package/dist-esm/media/enhancementProfiles.js +219 -0
  608. package/dist-esm/media/enhancementProfiles.js.map +1 -0
  609. package/dist-esm/media/generationJob.js +87 -0
  610. package/dist-esm/media/generationJob.js.map +1 -0
  611. package/dist-esm/media/gptImage.js +150 -0
  612. package/dist-esm/media/gptImage.js.map +1 -0
  613. package/dist-esm/media/imageDimensions.js +59 -0
  614. package/dist-esm/media/imageDimensions.js.map +1 -0
  615. package/dist-esm/media/index.js +16 -0
  616. package/dist-esm/media/index.js.map +1 -0
  617. package/dist-esm/media/musicSettings.js +230 -0
  618. package/dist-esm/media/musicSettings.js.map +1 -0
  619. package/dist-esm/media/vendorModelPremium.js +81 -0
  620. package/dist-esm/media/vendorModelPremium.js.map +1 -0
  621. package/dist-esm/media/videoAppSettings.js +125 -0
  622. package/dist-esm/media/videoAppSettings.js.map +1 -0
  623. package/dist-esm/media/videoContentLimit.js +162 -0
  624. package/dist-esm/media/videoContentLimit.js.map +1 -0
  625. package/dist-esm/media/videoReference.js +72 -0
  626. package/dist-esm/media/videoReference.js.map +1 -0
  627. package/dist-esm/media/videoSettings.js +191 -0
  628. package/dist-esm/media/videoSettings.js.map +1 -0
  629. package/dist-esm/openai-tools/_manifests.generated.js +1789 -0
  630. package/dist-esm/openai-tools/_manifests.generated.js.map +1 -0
  631. package/dist-esm/openai-tools/app-tools.json +297 -0
  632. package/dist-esm/openai-tools/composition-tools.json +228 -0
  633. package/dist-esm/openai-tools/generation-tools.json +1263 -0
  634. package/dist-esm/openai-tools/index.js +27 -0
  635. package/dist-esm/openai-tools/index.js.map +1 -0
  636. package/dist-esm/package.json +3 -0
  637. package/dist-esm/public-skill-runtime/index.js +6390 -0
  638. package/dist-esm/public-skill-runtime/index.js.map +1 -0
  639. package/dist-esm/replay/index.js +3 -0
  640. package/dist-esm/replay/index.js.map +1 -0
  641. package/dist-esm/replay/redact.js +102 -0
  642. package/dist-esm/replay/redact.js.map +1 -0
  643. package/dist-esm/replay/types.js +20 -0
  644. package/dist-esm/replay/types.js.map +1 -0
  645. package/dist-esm/runtime/chatTypes.js +2 -0
  646. package/dist-esm/runtime/chatTypes.js.map +1 -0
  647. package/dist-esm/runtime/durableWorkflowClient.js +295 -0
  648. package/dist-esm/runtime/durableWorkflowClient.js.map +1 -0
  649. package/dist-esm/runtime/index.js +2 -0
  650. package/dist-esm/runtime/index.js.map +1 -0
  651. package/dist-esm/schemas/errors/error.schema.json +21 -0
  652. package/dist-esm/schemas/errors/repair-control.schema.json +40 -0
  653. package/dist-esm/schemas/events/artifact-reference.schema.json +22 -0
  654. package/dist-esm/schemas/events/progress-event.schema.json +28 -0
  655. package/dist-esm/schemas/events/workflow-event.schema.json +22 -0
  656. package/dist-esm/schemas/storyboards/storyboard-planning-contract.schema.json +108 -0
  657. package/dist-esm/schemas/tools/add_subtitles.schema.json +77 -0
  658. package/dist-esm/schemas/tools/animate_photo.schema.json +104 -0
  659. package/dist-esm/schemas/tools/apply_style.schema.json +37 -0
  660. package/dist-esm/schemas/tools/change_angle.schema.json +30 -0
  661. package/dist-esm/schemas/tools/compose_instrumental.schema.json +24 -0
  662. package/dist-esm/schemas/tools/compose_lyrics.schema.json +28 -0
  663. package/dist-esm/schemas/tools/compose_script.schema.json +68 -0
  664. package/dist-esm/schemas/tools/compose_workflow.schema.json +67 -0
  665. package/dist-esm/schemas/tools/compose_workflow_template.schema.json +156 -0
  666. package/dist-esm/schemas/tools/dance_montage.schema.json +47 -0
  667. package/dist-esm/schemas/tools/edit_image.schema.json +74 -0
  668. package/dist-esm/schemas/tools/enhance_prompt.schema.json +76 -0
  669. package/dist-esm/schemas/tools/extend_video.schema.json +42 -0
  670. package/dist-esm/schemas/tools/generate_image.schema.json +104 -0
  671. package/dist-esm/schemas/tools/generate_music.schema.json +62 -0
  672. package/dist-esm/schemas/tools/generate_video.schema.json +97 -0
  673. package/dist-esm/schemas/tools/orbit_video.schema.json +70 -0
  674. package/dist-esm/schemas/tools/overlay_video.schema.json +126 -0
  675. package/dist-esm/schemas/tools/refine_result.schema.json +43 -0
  676. package/dist-esm/schemas/tools/replace_video_segment.schema.json +60 -0
  677. package/dist-esm/schemas/tools/restore_photo.schema.json +47 -0
  678. package/dist-esm/schemas/tools/sound_to_video.schema.json +70 -0
  679. package/dist-esm/schemas/tools/stitch_video.schema.json +52 -0
  680. package/dist-esm/schemas/tools/video_to_video.schema.json +77 -0
  681. package/dist-esm/schemas/workflows/durable-workflow-run.schema.json +165 -0
  682. package/dist-esm/schemas/workflows/durable-workflow-step.schema.json +141 -0
  683. package/dist-esm/skill-runtime-source/crossSurfaceParity.js +469 -0
  684. package/dist-esm/skill-runtime-source/crossSurfaceParity.js.map +1 -0
  685. package/dist-esm/skill-runtime-source/index.js +4 -0
  686. package/dist-esm/skill-runtime-source/index.js.map +1 -0
  687. package/dist-esm/skill-runtime-source/seedanceAudioWindow.js +47 -0
  688. package/dist-esm/skill-runtime-source/seedanceAudioWindow.js.map +1 -0
  689. package/dist-esm/skill-runtime-source/workflowStatus.js +348 -0
  690. package/dist-esm/skill-runtime-source/workflowStatus.js.map +1 -0
  691. package/dist-esm/skills/asset_reference_management/index.js +3 -0
  692. package/dist-esm/skills/asset_reference_management/index.js.map +1 -0
  693. package/dist-esm/skills/asset_reference_management/manifest.js +228 -0
  694. package/dist-esm/skills/asset_reference_management/manifest.js.map +1 -0
  695. package/dist-esm/skills/asset_reference_management/modelRefRegistry.js +129 -0
  696. package/dist-esm/skills/asset_reference_management/modelRefRegistry.js.map +1 -0
  697. package/dist-esm/skills/asset_reference_management/types.js +2 -0
  698. package/dist-esm/skills/asset_reference_management/types.js.map +1 -0
  699. package/dist-esm/tools/definitions/add-subtitles/definition.js +80 -0
  700. package/dist-esm/tools/definitions/add-subtitles/definition.js.map +1 -0
  701. package/dist-esm/tools/definitions/animate-photo/definition.js +121 -0
  702. package/dist-esm/tools/definitions/animate-photo/definition.js.map +1 -0
  703. package/dist-esm/tools/definitions/apply-style/definition.js +47 -0
  704. package/dist-esm/tools/definitions/apply-style/definition.js.map +1 -0
  705. package/dist-esm/tools/definitions/change-angle/definition.js +46 -0
  706. package/dist-esm/tools/definitions/change-angle/definition.js.map +1 -0
  707. package/dist-esm/tools/definitions/dance-montage/dances.js +86 -0
  708. package/dist-esm/tools/definitions/dance-montage/dances.js.map +1 -0
  709. package/dist-esm/tools/definitions/dance-montage/definition.js +42 -0
  710. package/dist-esm/tools/definitions/dance-montage/definition.js.map +1 -0
  711. package/dist-esm/tools/definitions/edit-image/definition.js +125 -0
  712. package/dist-esm/tools/definitions/edit-image/definition.js.map +1 -0
  713. package/dist-esm/tools/definitions/extend-video/definition.js +48 -0
  714. package/dist-esm/tools/definitions/extend-video/definition.js.map +1 -0
  715. package/dist-esm/tools/definitions/generate-image/definition.js +104 -0
  716. package/dist-esm/tools/definitions/generate-image/definition.js.map +1 -0
  717. package/dist-esm/tools/definitions/generate-music/definition.js +72 -0
  718. package/dist-esm/tools/definitions/generate-music/definition.js.map +1 -0
  719. package/dist-esm/tools/definitions/generate-video/definition.js +117 -0
  720. package/dist-esm/tools/definitions/generate-video/definition.js.map +1 -0
  721. package/dist-esm/tools/definitions/index.js +41 -0
  722. package/dist-esm/tools/definitions/index.js.map +1 -0
  723. package/dist-esm/tools/definitions/orbit-video/definition.js +100 -0
  724. package/dist-esm/tools/definitions/orbit-video/definition.js.map +1 -0
  725. package/dist-esm/tools/definitions/overlay-video/definition.js +139 -0
  726. package/dist-esm/tools/definitions/overlay-video/definition.js.map +1 -0
  727. package/dist-esm/tools/definitions/refine-result/definition.js +53 -0
  728. package/dist-esm/tools/definitions/refine-result/definition.js.map +1 -0
  729. package/dist-esm/tools/definitions/replace-video-segment/definition.js +62 -0
  730. package/dist-esm/tools/definitions/replace-video-segment/definition.js.map +1 -0
  731. package/dist-esm/tools/definitions/restore-photo/definition.js +55 -0
  732. package/dist-esm/tools/definitions/restore-photo/definition.js.map +1 -0
  733. package/dist-esm/tools/definitions/sound-to-video/definition.js +88 -0
  734. package/dist-esm/tools/definitions/sound-to-video/definition.js.map +1 -0
  735. package/dist-esm/tools/definitions/stitch-video/definition.js +86 -0
  736. package/dist-esm/tools/definitions/stitch-video/definition.js.map +1 -0
  737. package/dist-esm/tools/definitions/types.js +2 -0
  738. package/dist-esm/tools/definitions/types.js.map +1 -0
  739. package/dist-esm/tools/definitions/video-to-video/definition.js +98 -0
  740. package/dist-esm/tools/definitions/video-to-video/definition.js.map +1 -0
  741. package/dist-esm/tools/index.js +18 -0
  742. package/dist-esm/tools/index.js.map +1 -0
  743. package/dist-esm/tools/normalizeArgs.js +37 -0
  744. package/dist-esm/tools/normalizeArgs.js.map +1 -0
  745. package/dist-esm/tools/result.js +31 -0
  746. package/dist-esm/tools/result.js.map +1 -0
  747. package/dist-esm/tools/shared/downloadFilename.js +147 -0
  748. package/dist-esm/tools/shared/downloadFilename.js.map +1 -0
  749. package/dist-esm/tools/shared/dynamicPromptBranches.js +183 -0
  750. package/dist-esm/tools/shared/dynamicPromptBranches.js.map +1 -0
  751. package/dist-esm/tools/shared/errorClassification.js +74 -0
  752. package/dist-esm/tools/shared/errorClassification.js.map +1 -0
  753. package/dist-esm/tools/shared/imageEncoding.js +8 -0
  754. package/dist-esm/tools/shared/imageEncoding.js.map +1 -0
  755. package/dist-esm/tools/shared/llmHelpers.js +137 -0
  756. package/dist-esm/tools/shared/llmHelpers.js.map +1 -0
  757. package/dist-esm/tools/shared/modelRegistry.js +91 -0
  758. package/dist-esm/tools/shared/modelRegistry.js.map +1 -0
  759. package/dist-esm/tools/shared/multiImageIntent.js +10 -0
  760. package/dist-esm/tools/shared/multiImageIntent.js.map +1 -0
  761. package/dist-esm/tools/shared/numberOfVariationsAlignment.js +34 -0
  762. package/dist-esm/tools/shared/numberOfVariationsAlignment.js.map +1 -0
  763. package/dist-esm/tools/shared/policyChecks.js +73 -0
  764. package/dist-esm/tools/shared/policyChecks.js.map +1 -0
  765. package/dist-esm/tools/shared/promptRefinementCache.js +70 -0
  766. package/dist-esm/tools/shared/promptRefinementCache.js.map +1 -0
  767. package/dist-esm/tools/shared/promptSanitizer.js +70 -0
  768. package/dist-esm/tools/shared/promptSanitizer.js.map +1 -0
  769. package/dist-esm/tools/shared/seedancePolicyErrors.js +232 -0
  770. package/dist-esm/tools/shared/seedancePolicyErrors.js.map +1 -0
  771. package/dist-esm/tools/shared/slotFailureSummary.js +60 -0
  772. package/dist-esm/tools/shared/slotFailureSummary.js.map +1 -0
  773. package/dist-esm/tools/shared/visionDescriptionCache.js +29 -0
  774. package/dist-esm/tools/shared/visionDescriptionCache.js.map +1 -0
  775. package/dist-esm/types/index.js +31 -0
  776. package/dist-esm/types/index.js.map +1 -0
  777. package/dist-esm/utils/errors.js +86 -0
  778. package/dist-esm/utils/errors.js.map +1 -0
  779. package/dist-esm/utils/helpers.js +419 -0
  780. package/dist-esm/utils/helpers.js.map +1 -0
  781. package/dist-esm/workflows/bindings.js +212 -0
  782. package/dist-esm/workflows/bindings.js.map +1 -0
  783. package/dist-esm/workflows/executor-ports.js +2 -0
  784. package/dist-esm/workflows/executor-ports.js.map +1 -0
  785. package/dist-esm/workflows/executor.js +522 -0
  786. package/dist-esm/workflows/executor.js.map +1 -0
  787. package/dist-esm/workflows/index.js +8 -0
  788. package/dist-esm/workflows/index.js.map +1 -0
  789. package/dist-esm/workflows/primitives/index.js +3 -0
  790. package/dist-esm/workflows/primitives/index.js.map +1 -0
  791. package/dist-esm/workflows/primitives/retryUntilCondition.js +95 -0
  792. package/dist-esm/workflows/primitives/retryUntilCondition.js.map +1 -0
  793. package/dist-esm/workflows/primitives/validateWithRubric.js +141 -0
  794. package/dist-esm/workflows/primitives/validateWithRubric.js.map +1 -0
  795. package/dist-esm/workflows/summarize.js +51 -0
  796. package/dist-esm/workflows/summarize.js.map +1 -0
  797. package/dist-esm/workflows/types.js +2 -0
  798. package/dist-esm/workflows/types.js.map +1 -0
  799. package/dist-esm/workflows/validation.js +330 -0
  800. package/dist-esm/workflows/validation.js.map +1 -0
  801. package/media/index.d.ts +1 -0
  802. package/media/index.js +2 -0
  803. package/package.json +213 -0
  804. package/public-skill-runtime/index.d.ts +1 -0
  805. package/public-skill-runtime/index.js +2 -0
  806. package/replay/index.d.ts +1 -0
  807. package/replay/index.js +2 -0
  808. package/runtime/index.d.ts +1 -0
  809. package/runtime/index.js +2 -0
  810. package/skills/asset_reference_management/index.d.ts +1 -0
  811. package/skills/asset_reference_management/index.js +2 -0
  812. package/src/skill-runtime-source/crossSurfaceParity.ts +525 -0
  813. package/src/skill-runtime-source/index.ts +10 -0
  814. package/src/skill-runtime-source/seedanceAudioWindow.ts +61 -0
  815. package/src/skill-runtime-source/workflowStatus.ts +375 -0
  816. package/tools/index.d.ts +1 -0
  817. package/tools/index.js +2 -0
  818. package/workflows/index.d.ts +1 -0
  819. package/workflows/index.js +2 -0
@@ -0,0 +1,42 @@
1
+ import { DANCE_PRESETS } from './dances.js';
2
+ const danceEnum = DANCE_PRESETS.map(d => d.id);
3
+ const danceParamDesc = DANCE_PRESETS
4
+ .map(d => `"${d.id}": ${d.title} (${d.description}, max ${d.maxDuration}s).`)
5
+ .join(' ');
6
+ export const definition = {
7
+ type: 'function',
8
+ function: {
9
+ name: 'dance_montage',
10
+ description: 'REQUIRED for ALL dance video requests — do NOT use animate_photo or generate_video for dances. Uses real choreography reference videos to transfer dance motion onto a photo via WAN 2.2 Animate Move. Output is always 9:16 480p portrait. Do NOT use this for bare TikTok/Reels/Shorts/social-video requests unless the user explicitly asks for a dance, choreography, dance trend, or named dance preset. UPLOADED PHOTO: When the user asks for a dance "using this photo" or "with this photo", call dance_montage directly on the uploaded photo; do NOT call edit_image/generate_image first just to prepare, stylize, restyle, reframe, make full-body, or reinterpret the subject. Words that identify a dance preset or vibe, such as "Barbie", "Metric", "Black Sheep", "Rasputin", or "TikTok dance trend", are NOT requests for image prep. Only create image prep first when the user explicitly asks for a new look, outfit, variation set, multiple characters, or loaded persona identity preservation. IMAGE PREP: When generating images for dance (via edit_image or generate_image), ALWAYS use aspectRatio="9:16". CRITICAL — IMAGE COUNT: Generate exactly 1 image (numberOfVariations=1) for dance requests UNLESS the user explicitly asks for variations, different looks, or multiple characters (e.g. "4 different outfits", "alternate between a cat and a dog"). A single consistent image is used for ALL video segments to ensure visual consistency in the final stitched dance video. When the user DOES request multiple variations, batch them into ONE tool call using numberOfVariations + Dynamic Prompts — never split into multiple batches. PERSONAS: When personas are loaded, ALWAYS generate images via edit_image FIRST (using the persona reference photos for identity preservation), then call dance_montage — it will automatically use all generated images. Never use imagePrompt for persona dance requests — edit_image with persona context photos produces far better likeness. USING GENERATED IMAGES: When images have already been generated earlier in the conversation, simply call dance_montage WITHOUT sourceImageIndex — all previously generated images are used automatically as alternating montage segments. Do NOT tell the user to "upload" images that were already generated. Requires at least one uploaded photo, previously generated image, or loaded personas. Best results with photos of people.',
11
+ parameters: {
12
+ type: 'object',
13
+ properties: {
14
+ dance: {
15
+ type: 'string',
16
+ enum: danceEnum,
17
+ description: `Which dance choreography to use. ${danceParamDesc}.`,
18
+ },
19
+ duration: {
20
+ type: 'number',
21
+ description: 'Total video duration in seconds. Range: 8-30. OMIT this parameter unless the user explicitly requests a specific length — the handler defaults to the chosen dance\'s reference video length (capped at 30s) so the full choreography plays through. Each dance has its own max based on its reference video; the handler caps automatically.',
22
+ minimum: 8,
23
+ maximum: 30,
24
+ },
25
+ sourceImageIndex: {
26
+ type: 'number',
27
+ description: 'Which previously generated result image to use (0-based index). Use -1 for the original uploaded image. When omitted, all previously generated images are used automatically as alternating montage segments.',
28
+ },
29
+ imagePrompt: {
30
+ type: 'string',
31
+ description: 'Creative style/look for auto-generated images when no pre-generated images are available and no personas are loaded. For persona requests, always generate images via edit_image first — it preserves identity far better. This is a fallback only. If omitted, uses a default full-body portrait style.',
32
+ },
33
+ singleClip: {
34
+ type: 'boolean',
35
+ description: 'When true, renders the entire dance as one continuous clip (no stitching). Only works for durations ≤ 20s. Use when the user explicitly asks for a single video or one unbroken clip. Default: false (splits into segments for faster concurrent rendering).',
36
+ },
37
+ },
38
+ required: ['dance'],
39
+ },
40
+ },
41
+ };
42
+ //# sourceMappingURL=definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/dance-montage/definition.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,SAAS,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AAE/C,MAAM,cAAc,GAAG,aAAa;KACjC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC,WAAW,SAAS,CAAC,CAAC,WAAW,KAAK,CAAC;KAC5E,IAAI,CAAC,GAAG,CAAC,CAAC;AAEb,MAAM,CAAC,MAAM,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,eAAe;QACrB,WAAW,EACT,m1EAAm1E;QACr1E,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,SAAS;oBACf,WAAW,EAAE,oCAAoC,cAAc,GAAG;iBACnE;gBACD,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,+UAA+U;oBACjV,OAAO,EAAE,CAAC;oBACV,OAAO,EAAE,EAAE;iBACZ;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,+MAA+M;iBAClN;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,0SAA0S;iBAC7S;gBACD,UAAU,EAAE;oBACV,IAAI,EAAE,SAAS;oBACf,WAAW,EACT,8PAA8P;iBACjQ;aACF;YACD,QAAQ,EAAE,CAAC,OAAO,CAAC;SACpB;KACF;CACF,CAAC"}
@@ -0,0 +1,125 @@
1
+ import { LITERAL_PROMPT_OVERRIDE } from '../../../contracts/promptOverrideMarker.js';
2
+ import { ASPECT_RATIO_DESCRIPTION } from '../../../media/index.js';
3
+ export const definition = {
4
+ type: 'function',
5
+ function: {
6
+ name: 'edit_image',
7
+ description: 'Generate images guided by reference photos. Supports GPT Image 2 up to 16 images, Flux.2 up to 6 images, and Qwen up to 3 images. Best for style-guided generation, combining elements from multiple images, ANY persona image creation, and any uploaded brand asset reuse — logos, brand marks, mascots, product shots, photos, screenshots, sketches, or character designs the user expects to appear in or guide the result. ALWAYS use this (never generate_image) when persona photos OR uploaded image assets meant for reuse are in context — even if a specific model is requested. Exception: explicit Z-image/Z-image Turbo uploaded-image enhancement uses generate_image with sourceImageIndex and starting_image_strength because edit_image does not expose Z-image models. If a previous edit_image attempt did not preserve the uploaded asset well, stay on edit_image and tighten the prompt or switch model — do not fall back to generate_image, which has no access to the upload at all. For direct edits (remove objects, enhance), use restore_photo or refine_result unless the user explicitly requested Z-image.',
8
+ parameters: {
9
+ type: 'object',
10
+ properties: {
11
+ prompt: {
12
+ type: 'string',
13
+ description: `Edit instruction describing what to generate using the reference images as guidance. 50-200 words recommended.
14
+
15
+ ${LITERAL_PROMPT_OVERRIDE}
16
+
17
+ PROMPT CONSTRUCTION ORDER — build the prompt in this sequence:
18
+ 1. IDENTITY LOCK — state which picture owns the person's identity (GOLDEN RULE: never leave identity ambiguous when editing a person)
19
+ 2. REQUESTED EDIT — describe only what CHANGES (the delta), not the whole image
20
+ 3. REFERENCE ROLE MAPPING — assign each picture ONE primary role: base_identity (face/person), pose_reference, outfit_reference, style_reference, background_reference, or color_reference
21
+ 4. POSE / COMPOSITION — pose, framing, camera angle (omit if unchanged)
22
+ 5. STYLE — artistic style, genre, era (omit if unchanged)
23
+ 6. LIGHTING / REALISM — "maintain realistic anatomy, perspective, and lighting integration"
24
+ 7. PRESERVE clause — always end with "preserve all unmentioned details"
25
+
26
+ IDENTITY LOCK (required when a person is in any reference image):
27
+ "Preserve the exact facial likeness from picture N — face structure, eye shape, nose shape, mouth shape, jawline, skin tone, hairline, apparent age, and overall recognizability."
28
+ Never let a style, pose, or clothing reference silently override the face. If multiple images are provided, explicitly state "identity comes only from picture N — do not borrow identity from other pictures."
29
+
30
+ MINIMAL-CHANGE PRINCIPLE: The base image already contains the subject, composition, camera angle, expression, lighting, and background. Describe only the delta. Use positive constraints ("preserve exact facial likeness") not negative ones ("don't change the face").
31
+
32
+ SINGLE-IMAGE PATTERN:
33
+ "Preserve the exact facial likeness and recognizability of the person from picture 1. [Describe only the requested change]. Keep the same pose, framing, camera angle, and expression unless the user specifically requests changes to these. Preserve all unmentioned details."
34
+
35
+ MULTI-IMAGE PATTERN:
36
+ "Use the person from picture 1 as the final subject and preserve their exact facial likeness. [Requested edit]. Identity comes only from picture 1. Pose from picture 2. Outfit from picture 3. Do not borrow identity from pictures 2 or 3. Maintain realistic anatomy, perspective, and lighting integration. Preserve all unmentioned details."
37
+
38
+ CREATIVE TRANSFORMATIONS — be vivid and reference-specific, name the artist, franchise, or era, but always anchor identity first:
39
+ - "Preserve the exact facial likeness from picture 1. Transform them into a Renaissance oil painting in the style of Vermeer — rich warm tones, dramatic chiaroscuro lighting, ornate period clothing. Maintain realistic anatomy. Preserve all unmentioned details."
40
+ - "Preserve the exact facial likeness from picture 1. Reimagine them as a Marvel superhero — cinematic dramatic lighting, heroic pose, detailed costume with cape, glowing energy effects. Preserve all unmentioned details."
41
+ - "Preserve the exact facial likeness from picture 1. Transform them into a Studio Ghibli anime character — soft watercolor backgrounds, gentle Ghibli-style rendering, whimsical atmosphere. Preserve all unmentioned details."
42
+ - "Preserve the exact facial likeness from picture 1. Place them into a Star Wars scene — Jedi robes, lightsaber glow, dramatic sci-fi backdrop. Preserve all unmentioned details."
43
+ - "Preserve the exact facial likeness from picture 1. Turn them into a GTA loading screen character — bold outlines, saturated colors, attitude-filled pose, urban backdrop. Preserve all unmentioned details."
44
+
45
+ FAILURE MODES TO AVOID:
46
+ - Face drift: identity source not specified, or style/pose reference overrides the face
47
+ - Over-editing: for simple edits, prompt rewrites the entire image instead of describing the delta (creative transformations may intentionally change more)
48
+ - Reference confusion: multiple images provided without explicit role mapping
49
+
50
+ CHARACTER / MASCOT SHEETS: When the user asks for a character sheet, mascot sheet, model sheet, turnaround, expression sheet, or reusable character reference board using uploaded references, create ONE comprehensive professional reference-board image, not separate variations. Map reference roles clearly first (for example: picture 1 = character identity/style reference, picture 2 = logo/brand asset) and keep the character identity consistent across every panel. Include a large hero pose, front / 3/4 / side / back turnaround views, an expression row, action/personality poses, accessories or props, color palette swatches, and compact notes such as personality, fun facts, or brand usage when appropriate. Preserve exact user-provided brand names, slogans, logo text, and requested copy verbatim; incidental tiny notes may be generated by the image model if the user did not provide exact wording. Use clean readable typography.
51
+
52
+ BATCH VARIATIONS: When numberOfVariations > 1, the prompt must describe ONE subject in ONE scene — never mention counts, "versions", "different", or "multiple" in the prompt text. NEVER describe multiple copies or duplicates of the subject in a single image (no grids, collages, or side-by-side). Use Dynamic Prompt syntax to vary ONE dimension across separate images. For personas: vary scene, activity, expression, or environment — never vary identity. Example: user asks "4 versions at the beach" → numberOfVariations=4, prompt="[persona] at the beach {building a sandcastle|surfing a wave|reading under a palm tree|flying a kite}" — each output is ONE person doing ONE activity. For direct edits: vary the approach, e.g., numberOfVariations=3, prompt="make the sky {a vibrant sunset|stormy and dramatic|clear blue}". Preserve any requested orientation, aspect ratio, or exact pixel dimensions across every variation.
53
+
54
+ SELECTION-GATED IMAGE STAGES: If the user asks for multiple reference-guided image options/takes/versions and says they will pick one before a later dance, animation, or video, this edit_image call is still the first step. Generate the complete image batch now with sourceImageIndex set to the relevant reference, the exact requested count, Dynamic Prompt options for each output, and the final video/image aspect ratio. Do not ask the user to choose before the images exist, and do not call video tools until after the user selects an image.
55
+
56
+ LINKED VARIANTS: If multiple details must stay paired per output — visual style, identity cues, outfit, label text, symbols, setting, character, prop, location, or before/after keyframe details — use ONE top-level Dynamic Prompt branch with one complete prompt per output. Do NOT use separate Dynamic Prompt groups for details that must stay together; unpaired groups can mix attributes. If the user asks for per-variant facial, identity, or appearance changes, repeat that guidance inside EVERY option while also preserving recognizability. When the user names a subject or character, write that name or stable role inside every Dynamic Prompt option; a shared prefix outside the branch is not enough because each option must stand alone as a complete identity contract.
57
+
58
+ Each option must be a fully concrete description — name the actual garment or styling, the actual setting, the actual accessories, and the literal text or symbol shown on screen when requested. Never use meta-placeholder phrasing such as "style-specific outfit", "variant-specific background", "include the requested symbol", "include a humorous alternate name", or "bake the name and symbol into the image" — those describe the task instead of the image.
59
+
60
+ ORIGINAL + VARIANT BATCHES: When one option is a remade/preserved original and the other options are themed variants, the original option still needs a concrete visual contract. Say to preserve the original clothing/wardrobe/outfit and original background/setting, then name any requested added text, label, flag, logo, symbol, or prop for that original option. Do not leave the original option as only "unmodified original person"; it must be as fully specified as every themed option.
61
+
62
+ NEW SETTING PER OPTION: When the variant theme implies a new place, culture, era, or context, every option must name its own setting (location, props, lighting). Do NOT carry the source background forward, do NOT write "in the same pose and placement as the original photo" without also naming the new background, and do NOT rely on "preserve all unmentioned details" to handle the setting — the new setting IS a mentioned detail.
63
+
64
+ RECOGNIZABILITY OVER FEATURE LOCK: For ethnic / age / character / art-style transformations, do NOT paste the strict IDENTITY LOCK feature list ("face structure, eye shape, nose shape, mouth shape, jawline, skin tone, hairline") inside each option — that list contradicts the requested face change and the source face will pass through unchanged. Anchor recognizability per option through apparent age, signature hair silhouette, build, posture, and expression, and explicitly allow skin tone, facial features, and proportions to shift toward the target.
65
+
66
+ Correct shape (each option self-contained, concrete, with a fresh setting and a recognizability anchor instead of a strict feature lock):
67
+ "{The subject wearing [specific garment, color, cut, and material], standing in [specific NEW setting with props and lighting — never the source background], bold text at the bottom reads [literal requested text], [specific requested visual symbol] appears as a sign or prop, [requested per-variant facial or appearance shift, e.g. "skin tone, eye shape, and bone structure shift toward <target> features"], recognizable through apparent age, signature hair silhouette, build, posture, and expression|The subject wearing [second specific garment, color, cut, and material], standing in [second specific NEW setting with props and lighting], bold text at the bottom reads [second literal requested text], [second requested visual symbol] appears as a sign or prop, [second requested facial or appearance shift], recognizable through apparent age, signature hair silhouette, build, posture, and expression|...}"
68
+
69
+ Wrong shape (placeholder labels masquerading as prompts):
70
+ "{First variant with variant-specific facial features, placeholder wardrobe, alternate name, and requested symbol baked in|Second variant with different variant-specific facial features, placeholder wardrobe, alternate name, and requested symbol baked in|...}"
71
+
72
+ Also wrong (strict feature lock + no new setting — the source face and source background pass through unchanged):
73
+ "{Preserve the exact facial likeness — face structure, eye shape, nose shape, mouth shape, jawline, skin tone, hairline. Reimagine as <variant>: [garment description], standing in the exact same pose and placement as the original photo. Preserve all unmentioned details.|Preserve the exact facial likeness — [same strict lock]. Reimagine as <other variant>: [other garment], standing in the exact same pose and placement as the original photo. Preserve all unmentioned details.|...}"
74
+
75
+ SCREENPLAY / STORYBOARD BATCHES: For multi-scene story, commercial, or longer-form video keyframes, use one Dynamic Prompt branch with one full scene prompt per option. Recurring characters must keep stable names and repeated visual anchors in every scene option where they appear: face/identity source if available, age range, build, hairstyle, outfit silhouette, color palette, signature prop/accessory, posture, and role. Do not let style, scene changes, or pose references alter identity. Include screenplay-style speaker tags when dialogue matters, e.g. CHARACTER: "We made it."
76
+
77
+ COMPOSITE GPT IMAGE 2 STORYBOARD SHEETS: When numberOfVariations=1 and the user asks for one composite video storyboard/keyframe sheet using uploaded or generated references, the prompt must be a compiled storyboard prompt, not a concept summary. Include a SCENES: section with exactly the requested number of concrete entries named SCENE_01, SCENE_02, etc. Every scene entry must include Visual/Action, Camera/Motion, Dialogue/VO (or [no dialogue]), Audio/SFX, and any visible text or reference usage for that scene. Do not provide only the source brief or generic layout instructions; malformed compiled storyboard prompts are blocked by quality audit.`,
78
+ },
79
+ model: {
80
+ type: 'string',
81
+ enum: ['gpt-image-2', 'qwen-lightning', 'qwen', 'flux2'],
82
+ description: 'DO NOT SET THIS PARAMETER unless the user names a specific edit model, asks for a very complex reference-guided image render, or asks for a video storyboard/storyboard sheet/contact sheet/panel layout image using references. The app auto-selects based on quality settings. Set "gpt-image-2" when the user asks for a ChatGPT, OpenAI, GPT, GPT-2, GPT Image, or gpt-image-2 reference-guided image/edit/model, or by default for complex single-image renders that need dense labels, crisp typography, multi-panel composition, timing notes, foley notes, professional storyboard-sheet layout, or a comprehensive character/mascot/model sheet with turnarounds, expressions, accessories, palette swatches, and brand notes. Z-image and Z-image Turbo are not edit_image models; route those explicit uploaded-image enhancement requests to generate_image with sourceImageIndex and starting_image_strength. If the user names another edit/image model, honor that requested model instead. GPT Image 2 always processes input images at high fidelity; do not set input_fidelity.',
83
+ },
84
+ sourceImageIndex: {
85
+ type: 'number',
86
+ description: 'Index of the primary image to use as the main reference. For follow-up edits when generated image results already exist, use the 0-based generated image result index; for example, editing the latest generated storyboard/image should use that generated result index so the model modifies the existing image instead of redrawing from uploads. When no generated image results exist, use sourceImageIndex=-1 to use the uploaded image references. The primary image and any additional uploaded images are passed as context images to guide generation.',
87
+ },
88
+ numberOfVariations: {
89
+ type: 'number',
90
+ description: 'Number of variations (1-16). Pass the user\'s EXACT requested count in ONE call — never split into multiple calls and never call edit_image again to "add more". "4 variations" → numberOfVariations=4 in a single call. Use the exact requested count for reference-guided images that will feed a later video after the user picks one. For screenplay/storyboard batches, the prompt must contain one Dynamic Prompt branch with one full scene prompt per scene; never set numberOfVariations=N with only scene 1\'s prompt. Use 1 unless the user explicitly asks for multiple. Default: 1.',
91
+ minimum: 1,
92
+ maximum: 16,
93
+ },
94
+ width: {
95
+ type: 'number',
96
+ description: 'Output image width in pixels. Defaults to the context image width. Supported range is 256-2560 for Qwen/Flux.2 edit models. For gpt-image-2, dimensions are flexible up to 3840px on either edge with max 3:1 aspect ratio and a total pixel budget from 655,360 to 8,294,400; the renderer snaps to the nearest valid multiple-of-16 size. Set when the user specifies a width, exact pixel dimensions, or a named resolution (e.g., "1280 wide", "1280x720", "720p", "3840x2160"). If the user gives only one dimension, set only that dimension and preserve/infer the sensible aspect ratio. User-requested dimensions override the default media quality, including Pro. Non-multiple-of-16 values are accepted when in bounds; the renderer snaps to the nearest supported size internally, so do not ask the user to adjust by a few pixels.',
97
+ },
98
+ height: {
99
+ type: 'number',
100
+ description: 'Output image height in pixels. Defaults to the context image height. Supported range is 256-2560 for Qwen/Flux.2 edit models. For gpt-image-2, dimensions are flexible up to 3840px on either edge with max 3:1 aspect ratio and a total pixel budget from 655,360 to 8,294,400; the renderer snaps to the nearest valid multiple-of-16 size. Set when the user specifies a height, exact pixel dimensions, or a named resolution (e.g., "720 high", "1280x720", "720p", "2160x3840"). If the user gives only one dimension, set only that dimension and preserve/infer the sensible aspect ratio. User-requested dimensions override the default media quality, including Pro. Non-multiple-of-16 values are accepted when in bounds; the renderer snaps to the nearest supported size internally, so do not ask the user to adjust by a few pixels.',
101
+ },
102
+ aspectRatio: {
103
+ type: 'string',
104
+ description: `${ASPECT_RATIO_DESCRIPTION}\n\nSet this whenever the user specifies an image or downstream video orientation/aspect ratio such as 9:16, 16:9, portrait, vertical, landscape, widescreen, TikTok/Reels/Shorts, or exact pixels. This includes selection-gated reference-guided image batches that will feed a later video or dance after the user picks one. For GPT Image 2 exact size requests, preserve exact pixel intent when possible and prefer popular GPT sizes such as 1536x1024, 1024x1536, 2048x1152, 3840x2160, and 2160x3840. GPT Image 2 does not support transparent-background output; do not promise a transparent result for this model.`,
105
+ },
106
+ gptImageQuality: {
107
+ type: 'string',
108
+ enum: ['low', 'medium', 'high', 'auto'],
109
+ description: 'Optional GPT Image 2 rendering quality. Only set with model="gpt-image-2" when the user explicitly asks for low/fast, medium/balanced, high/final, or auto quality. Otherwise omit it and let the host app media quality setting map Fast to low, HQ to medium, and Pro to high.',
110
+ },
111
+ outputFormat: {
112
+ type: 'string',
113
+ enum: ['png', 'jpg', 'jpeg', 'webp'],
114
+ description: 'Optional output file format for generated images. Set only when the user explicitly requests PNG, JPG/JPEG, or WebP. Hosts should normalize "jpeg" to the Sogni project format "jpg".',
115
+ },
116
+ personaName: {
117
+ type: 'string',
118
+ description: 'RARE — only set this when the user EXPLICITLY asks for solo images of one specific person ("a portrait of just [name]", "4 solos of [name] alone"). When set, the handler filters context to ONLY that persona\'s reference photo, so any other personas in your prompt will be missing their reference. DEFAULT for multi-persona requests is to OMIT this and put both faces in one combined call. Never set this for "make us as X", "the two of us", "my wife and I", or any phrasing that puts both personas in the same scene — that\'s a single combined call with no personaName.',
119
+ },
120
+ },
121
+ required: ['prompt'],
122
+ },
123
+ },
124
+ };
125
+ //# sourceMappingURL=definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/edit-image/definition.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,MAAM,CAAC,MAAM,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,YAAY;QAClB,WAAW,EACT,8kCAA8kC;QAChlC,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;;EAErB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+oBA8DsnB;iBACtoB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,aAAa,EAAE,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC;oBACxD,WAAW,EACT,miCAAmiC;iBACtiC;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,kiBAAkiB;iBACriB;gBACD,kBAAkB,EAAE;oBAClB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,kkBAAkkB;oBACpkB,OAAO,EAAE,CAAC;oBACV,OAAO,EAAE,EAAE;iBACZ;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,qzBAAqzB;iBACxzB;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,uzBAAuzB;iBAC1zB;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,GAAG,wBAAwB,imBAAimB;iBAC/nB;gBACD,eAAe,EAAE;oBACf,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC;oBACvC,WAAW,EACT,kRAAkR;iBACrR;gBACD,YAAY,EAAE;oBACZ,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;oBACpC,WAAW,EACT,uLAAuL;iBAC1L;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,2jBAA2jB;iBAC9jB;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC"}
@@ -0,0 +1,48 @@
1
+ export const definition = {
2
+ type: 'function',
3
+ function: {
4
+ name: 'extend_video',
5
+ description: 'Extend a video by adding new time to the end. Works on BOTH videos previously rendered in this session AND user-uploaded videos — set videoIndex to a negative number (e.g. -1) to target an uploaded video when no prior render exists. The base video is auto-selected from the most recent video in this session unless videoIndex is set. ' +
6
+ 'For LTX-2.3 base clips, the tool extracts the last frame and renders an image-to-video continuation. ' +
7
+ 'For Seedance base clips, the tool extracts a trailing reference segment and renders a video-to-video continuation. ' +
8
+ 'Returns both the standalone new segment and a spliced composite (base + new segment).' +
9
+ ' Use when the user asks to "make it longer", "extend the video", "add another N seconds", "continue the scene", "add an outro/bumper to the end", etc.' +
10
+ ' Prefer this over generate_image+animate_photo+stitch_video for "add a bumper/outro to this video" — extend_video preserves the original base bytes, audio, and timing instead of re-encoding them.' +
11
+ ' Do not use this tool to render fresh videos from scratch — call generate_video or animate_photo for that.' +
12
+ ' Output durations follow each model\'s native limits (LTX 2-20s, Seedance 4-15s) for the new segment alone.',
13
+ parameters: {
14
+ type: 'object',
15
+ properties: {
16
+ prompt: {
17
+ type: 'string',
18
+ description: 'What should happen during the extension — describe motion, action, dialogue, and audio for the appended seconds, NOT the entire video. ' +
19
+ 'For LTX continuations, preserve user-provided spoken dialogue in double quotes; if speech is requested without exact words, describe the delivery without inventing quoted dialogue. ' +
20
+ 'If the user did not specify what should happen, write a brief continuation that preserves the existing tone (e.g. "the scene continues with the same camera and pacing").',
21
+ },
22
+ duration: {
23
+ type: 'number',
24
+ description: 'Length in seconds of the new appended segment (NOT total final length). LTX 2-20, Seedance 4-15. Default: 5.',
25
+ minimum: 2,
26
+ maximum: 20,
27
+ },
28
+ videoIndex: {
29
+ type: 'number',
30
+ description: 'Which video result to extend. Default: -1 (most recent video in this session). ' +
31
+ 'Use 0-based non-negative indices for prior tool result videos. Use negative indices for uploaded videos: -1 = most recent video result OR first uploaded video when no prior render exists.',
32
+ },
33
+ videoModel: {
34
+ type: 'string',
35
+ enum: ['auto', 'ltx23', 'seedance2', 'seedance2-fast'],
36
+ description: 'Which model to use for the new segment. Default: "auto" — detect from the base video\'s producer (Seedance base → Seedance, otherwise LTX-2.3). ' +
37
+ 'Override only when the user explicitly requests a different model.',
38
+ },
39
+ keepOriginalAudio: {
40
+ type: 'boolean',
41
+ description: 'Has no effect for extend_video (the new segment is appended after the base, so the base audio is always preserved through the original portion and the new segment carries its own audio). Reserved for parity with replace_video_segment.',
42
+ },
43
+ },
44
+ required: ['duration'],
45
+ },
46
+ },
47
+ };
48
+ //# sourceMappingURL=definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/extend-video/definition.ts"],"names":[],"mappings":"AAaA,MAAM,CAAC,MAAM,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,cAAc;QACpB,WAAW,EACT,gVAAgV;YAChV,uGAAuG;YACvG,qHAAqH;YACrH,uFAAuF;YACvF,wJAAwJ;YACxJ,qMAAqM;YACrM,4GAA4G;YAC5G,6GAA6G;QAC/G,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,yIAAyI;wBACzI,uLAAuL;wBACvL,2KAA2K;iBAC9K;gBACD,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,8GAA8G;oBAChH,OAAO,EAAE,CAAC;oBACV,OAAO,EAAE,EAAE;iBACZ;gBACD,UAAU,EAAE;oBACV,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,iFAAiF;wBACjF,6LAA6L;iBAChM;gBACD,UAAU,EAAE;oBACV,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,gBAAgB,CAAC;oBACtD,WAAW,EACT,kJAAkJ;wBAClJ,oEAAoE;iBACvE;gBACD,iBAAiB,EAAE;oBACjB,IAAI,EAAE,SAAS;oBACf,WAAW,EACT,4OAA4O;iBAC/O;aACF;YACD,QAAQ,EAAE,CAAC,UAAU,CAAC;SACvB;KACF;CACF,CAAC"}
@@ -0,0 +1,104 @@
1
+ import { LITERAL_PROMPT_OVERRIDE } from '../../../contracts/promptOverrideMarker.js';
2
+ import { ASPECT_RATIO_DESCRIPTION } from '../../../media/index.js';
3
+ export const definition = {
4
+ type: 'function',
5
+ function: {
6
+ name: 'generate_image',
7
+ description: 'Generate a new image from a text description. Usually this is text-only: do NOT use this tool when the user expects an existing image to be reused or preserved in the result. That includes (a) people from My Personas, and (b) uploaded assets such as logos, brand marks, mascots, product shots, photos, screenshots, sketches, character designs, or other reference images they want carried through. Use edit_image with sourceImageIndex=-1 (or the appropriate generated index) instead. Exception: when the user explicitly requests Z-image, Z Image, or Z-image Turbo for an uploaded-image enhancement/image-to-image request, use this tool with model="z-turbo" or model="z-image", sourceImageIndex=-1, and starting_image_strength because edit_image does not expose Z-image models.',
8
+ parameters: {
9
+ type: 'object',
10
+ properties: {
11
+ prompt: {
12
+ type: 'string',
13
+ description: `Text description of the image (50-200 words). POSITIVE phrasing only. Be specific and vivid — reference real artists, franchises, and aesthetics by name.
14
+
15
+ ${LITERAL_PROMPT_OVERRIDE}
16
+
17
+ PROMPT ORDER (follow this structure): [SUBJECT] → [ATTRIBUTES] → [ACTION/POSE] → [CAMERA/FRAMING] → [ENVIRONMENT] → [LIGHTING] → [STYLE/MEDIUM] → [MATERIALS/TEXTURES] → [SECONDARY DETAILS]. Always lead with the main subject and its concrete, observable attributes — never start with mood or atmosphere. Put the most visually decisive details early.
18
+
19
+ SPECIFICITY: Use concrete nouns and observable adjectives ("weathered leather jacket", not "cool outfit"). Specify framing (close-up, medium shot, full body, wide shot), angle (eye level, low angle, high angle, overhead), lighting type ("soft overcast daylight", "warm golden-hour sunlight", "moody neon spill with deep shadows"), and medium/style ("photorealistic editorial photography", "cinematic still frame", "clean anime illustration"). Include materials and textures when relevant ("brushed aluminum", "wet asphalt reflections", "heavy wool texture").
20
+
21
+ DEFAULTS (fill in when user is underspecified): Framing: medium shot for portraits, wide shot for environments, full-body for fashion/outfits. Angle: eye level unless dramatic perspective requested. Lighting: soft natural light for realism, clean studio light for product shots. Style: photorealistic for realistic models, matching the model's native style for stylized models (e.g. anime illustration for pony/animagine). Reference real artists and franchises by name ("in the style of Monet's Water Lilies", "Wes Anderson symmetrical pastel composition", "cyberpunk Blade Runner neon city", "shot on 85mm f/1.4 with shallow depth of field").
22
+
23
+ AVOID: Starting with abstract mood words alone. Burying the subject after a long style preamble. Stacking incompatible styles. Overloading with competing focal points. Vague phrases like "very cool" or "epic vibes".
24
+
25
+ CHARACTER / MASCOT SHEETS: When the user asks for a character sheet, mascot sheet, model sheet, turnaround, expression sheet, or reusable character reference board, create ONE comprehensive professional reference-board image, not separate variations. Include a large hero pose, front / 3/4 / side / back turnaround views, an expression row, action/personality poses, accessories or props, color palette swatches, and compact notes such as personality, fun facts, or brand usage when appropriate. Preserve exact user-provided brand names, slogans, logo text, and requested copy verbatim; incidental tiny notes may be generated by the image model if the user did not provide exact wording. Keep the character consistent across every panel and use clean readable typography.
26
+
27
+ BATCH VARIATIONS: When numberOfVariations > 1, the prompt must describe ONE subject in ONE scene — never mention counts, "versions", "different", or "multiple" in the prompt text. NEVER describe multiple copies or duplicates of the subject in a single image (no grids, collages, or side-by-side). Use Dynamic Prompt syntax to vary ONE dimension across separate images. Example: user asks "4 cats in different spots" → numberOfVariations=4, prompt="a black cat {lounging in a sunlit window|prowling through autumn leaves|sitting on a vintage bookshelf|curled up by a fireplace}" — each output is ONE cat in ONE spot. Vary setting, style, lighting, expression, or composition — never override what the user specified. Preserve any requested orientation, aspect ratio, or exact pixel dimensions across every variation.
28
+
29
+ SELECTION-GATED IMAGE STAGES: If the user asks for multiple image options/takes/versions and says they will pick one before a later dance, animation, or video, this tool call is still the first step. Generate the complete image batch now with the exact requested count, Dynamic Prompt options for each output, and the final video/image aspect ratio. Do not ask the user to choose before the images exist, and do not call video tools until after the user selects an image.
30
+
31
+ LINKED VARIANTS: If multiple details must stay paired per output — visual style, outfit, label text, symbol, setting, character, prop, location, or before/after keyframe details — use ONE top-level Dynamic Prompt branch with one complete prompt per output. Do NOT use separate Dynamic Prompt groups for details that must stay together; unpaired groups can mix attributes. If the user asks for per-variant facial, identity, or appearance changes, repeat that guidance inside EVERY option. When the user names a subject or character, write that name or stable role inside every Dynamic Prompt option; a shared prefix outside the branch is not enough because each option must stand alone. Correct shape: "{full prompt for variant 1 with all paired details|full prompt for variant 2 with all paired details|...}".
32
+
33
+ SCREENPLAY / STORYBOARD BATCHES: For multi-scene commercials, storyboards, or shot lists, numberOfVariations must equal the scene count and the prompt MUST be a SINGLE top-level dynamic branch containing one full scene prompt per option, e.g. "{scene 1 full prompt|scene 2 full prompt|scene 3 full prompt}". This is the required way to batch scenes with materially different content while still rendering one image per scene. If recurring characters appear, use stable character names and repeat the same visual anchors in every scene option where they appear (age range, build, hairstyle, outfit silhouette, color palette, signature prop/accessory, posture). Do not rename, merge, redesign, or drift characters between scene keyframes unless the user asks. Include speaker-tagged dialogue details when dialogue affects the keyframe, e.g. CHARACTER: "We made it." NEVER set numberOfVariations=N with only scene 1's prompt — that creates N duplicate versions of scene 1, not N scenes. If the scene count is 16 or fewer, do it in ONE call. Do NOT generate scene 1 first or split into smaller batches unless the user explicitly asks.
34
+
35
+ COMPOSITE GPT IMAGE 2 STORYBOARD SHEETS: When numberOfVariations=1 and the user asks for one composite video storyboard/keyframe sheet, the prompt must be a compiled storyboard prompt, not a concept summary. Include a SCENES: section with exactly the requested number of concrete entries named SCENE_01, SCENE_02, etc. Every scene entry must include Visual/Action, Camera/Motion, Dialogue/VO (or [no dialogue]), Audio/SFX, and any visible text or reference usage for that scene. Do not provide only the source brief or generic layout instructions; malformed compiled storyboard prompts are blocked by quality audit.
36
+
37
+ VIDEO KEYFRAMES: When generating images intended as first+last frames for video (animate_photo with frameRole="both"), use numberOfVariations=2 with Dynamic Prompts to create both frames in one call. Make each frame a distinct scene that creates a compelling transition. The video handler will inspect both generated frames and build a scene-aware transition prompt, so focus this image prompt on producing strong start/end visuals. Example: "a serene lake {at dawn with mist rising and soft pink sky|at dusk with fireflies and deep blue twilight}".`,
38
+ },
39
+ model: {
40
+ type: 'string',
41
+ enum: [
42
+ 'gpt-image-2',
43
+ 'z-turbo', 'z-image', 'chroma-v46-flash', 'chroma-detail', 'flux1-krea', 'flux2', 'pony-v7',
44
+ 'qwen-2512', 'qwen-2512-lightning',
45
+ 'albedo-xl', 'animagine-xl', 'anima-pencil-xl', 'art-universe-xl', 'hyphoria-real',
46
+ 'analog-madness-xl', 'cyberrealistic-xl', 'real-dream-xl', 'faetastic-xl',
47
+ 'zavychroma-xl', 'pony-faetality', 'dreamshaper-xl',
48
+ ],
49
+ description: 'DO NOT SET THIS PARAMETER unless the user names a specific model, asks for a very complex image render, asks for a video storyboard/storyboard sheet/contact sheet/panel layout image, or explicitly asks for Z-image/Z-image Turbo image-to-image. The app auto-selects based on quality settings. Set "gpt-image-2" when the user asks for a ChatGPT, OpenAI, GPT, GPT-2, GPT Image, or gpt-image-2 image/model, when they explicitly request very strong text rendering, or by default for complex single-image renders that need dense labels, crisp typography, multi-panel composition, timing notes, foley notes, professional storyboard-sheet layout, or a comprehensive character/mascot/model sheet with turnarounds, expressions, accessories, palette swatches, and brand notes. Set "z-turbo" when the user asks for Z-image Turbo; set "z-image" when they ask for Z-image without Turbo. If the user names another image model, honor that requested model instead. A model preference usually does not change which tool to use; the Z-image image-to-image exception uses sourceImageIndex plus starting_image_strength on this tool. NSFW rule: "gpt-image-2"/"flux2"/"flux1-krea" CANNOT do nudity — use "pony-v7", "chroma-detail", "chroma-v46-flash", or "z-turbo" instead.',
50
+ },
51
+ width: {
52
+ type: 'number',
53
+ description: 'Output image width in pixels. Default: 1024. Supported range is 256-2560 for default Z/Qwen/Flux.2 image models and 256-2048 for legacy/specialized image models. For gpt-image-2, dimensions are flexible up to 3840px on either edge with max 3:1 aspect ratio and a total pixel budget from 655,360 to 8,294,400; the renderer snaps to the nearest valid multiple-of-16 size. Set when the user specifies a width, exact pixel dimensions, or a named resolution (e.g., "1280 wide", "1280x720", "720p", "1080x1920", "3840x2160"). If the user gives only one dimension, set only that dimension and preserve/infer the sensible aspect ratio. User-requested dimensions override the default media quality, including Pro. Non-multiple-of-16 values are accepted when in bounds, so do not ask the user to adjust by a few pixels.',
54
+ },
55
+ height: {
56
+ type: 'number',
57
+ description: 'Output image height in pixels. Default: 1024. Supported range is 256-2560 for default Z/Qwen/Flux.2 image models and 256-2048 for legacy/specialized image models. For gpt-image-2, dimensions are flexible up to 3840px on either edge with max 3:1 aspect ratio and a total pixel budget from 655,360 to 8,294,400; the renderer snaps to the nearest valid multiple-of-16 size. Set when the user specifies a height, exact pixel dimensions, or a named resolution (e.g., "720 high", "1280x720", "720p", "1080x1920", "2160x3840"). If the user gives only one dimension, set only that dimension and preserve/infer the sensible aspect ratio. User-requested dimensions override the default media quality, including Pro. Non-multiple-of-16 values are accepted when in bounds, so do not ask the user to adjust by a few pixels.',
58
+ },
59
+ numberOfVariations: {
60
+ type: 'number',
61
+ description: 'Number of variations (1-16). Use the user\'s exact requested count in one call whenever they ask for multiple images/options/takes/versions, including images that will feed a later video after the user picks one. For screenplay/storyboard batches, this must equal the scene count AND the prompt must contain one Dynamic Prompt branch with one full scene prompt per scene; never set numberOfVariations=N with only one scene prompt. Default: 1.',
62
+ minimum: 1,
63
+ maximum: 16,
64
+ },
65
+ negativePrompt: {
66
+ type: 'string',
67
+ description: 'Things to avoid in the generated image. Only set when the user explicitly mentions what to avoid. E.g., "no watermarks, no text, no blurry edges".',
68
+ },
69
+ starting_image_strength: {
70
+ type: 'number',
71
+ description: 'Image-to-image strength (0.0-1.0). Only used when a source image is available and model supports img2img. Higher values = more deviation from the source image. 0.35 = conservative enhancement, 0.5 = balanced, 0.8 = creative. Set this with sourceImageIndex when the user explicitly requests Z-image/Z-image Turbo enhancement or any supported img2img starting-image workflow.',
72
+ },
73
+ sourceImageIndex: {
74
+ type: 'number',
75
+ description: 'Which result image to use as starting image for img2img (0-based index). -1 = original upload. Omit to auto-select latest result. Only relevant when starting_image_strength is set.',
76
+ },
77
+ seed: {
78
+ type: 'integer',
79
+ description: 'Random seed for reproducibility. Use -1 for random (default). Set a specific seed when the user wants to reproduce a previous result.',
80
+ },
81
+ guidance: {
82
+ type: 'number',
83
+ description: 'Guidance scale override. Higher values = more prompt adherence. Model-specific defaults are used if omitted. Only set when the user explicitly requests a guidance value.',
84
+ },
85
+ gptImageQuality: {
86
+ type: 'string',
87
+ enum: ['low', 'medium', 'high', 'auto'],
88
+ description: 'Optional GPT Image 2 rendering quality. Only set with model="gpt-image-2" when the user explicitly asks for low/fast, medium/balanced, high/final, or auto quality. Otherwise omit it and let the host app media quality setting map Fast to low, HQ to medium, and Pro to high.',
89
+ },
90
+ outputFormat: {
91
+ type: 'string',
92
+ enum: ['png', 'jpg', 'jpeg', 'webp'],
93
+ description: 'Optional output file format for generated images. Set only when the user explicitly requests PNG, JPG/JPEG, or WebP. Hosts should normalize "jpeg" to the Sogni project format "jpg".',
94
+ },
95
+ aspectRatio: {
96
+ type: 'string',
97
+ description: `${ASPECT_RATIO_DESCRIPTION}\n\nSet this whenever the user specifies an image or downstream video orientation/aspect ratio such as 9:16, 16:9, portrait, vertical, landscape, widescreen, TikTok/Reels/Shorts, or exact pixels. This includes selection-gated image batches that will feed a later video or dance after the user picks one. For GPT Image 2 exact size requests, preserve exact pixel intent when possible and prefer popular GPT sizes such as 1536x1024, 1024x1536, 2048x1152, 3840x2160, and 2160x3840. GPT Image 2 does not support transparent-background output; do not promise a transparent result for this model.`,
98
+ },
99
+ },
100
+ required: ['prompt'],
101
+ },
102
+ },
103
+ };
104
+ //# sourceMappingURL=definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-image/definition.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAEnE,MAAM,CAAC,MAAM,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,gBAAgB;QACtB,WAAW,EACT,ywBAAywB;QAC3wB,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;;EAErB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;siBAsB6gB;iBAC7hB;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE;wBACJ,aAAa;wBACb,SAAS,EAAE,SAAS,EAAE,kBAAkB,EAAE,eAAe,EAAE,YAAY,EAAE,OAAO,EAAE,SAAS;wBAC3F,WAAW,EAAE,qBAAqB;wBAClC,WAAW,EAAE,cAAc,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,eAAe;wBAClF,mBAAmB,EAAE,mBAAmB,EAAE,eAAe,EAAE,cAAc;wBACzE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB;qBACpD;oBACD,WAAW,EACT,ouCAAouC;iBACvuC;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,2yBAA2yB;iBAC9yB;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,4yBAA4yB;iBAC/yB;gBACD,kBAAkB,EAAE;oBAClB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,4bAA4b;oBAC9b,OAAO,EAAE,CAAC;oBACV,OAAO,EAAE,EAAE;iBACZ;gBACD,cAAc,EAAE;oBACd,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,oJAAoJ;iBACvJ;gBACD,uBAAuB,EAAE;oBACvB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,uXAAuX;iBAC1X;gBACD,gBAAgB,EAAE;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,sLAAsL;iBACzL;gBACD,IAAI,EAAE;oBACJ,IAAI,EAAE,SAAS;oBACf,WAAW,EACT,uIAAuI;iBAC1I;gBACD,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,2KAA2K;iBAC9K;gBACD,eAAe,EAAE;oBACf,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC;oBACvC,WAAW,EACT,kRAAkR;iBACrR;gBACD,YAAY,EAAE;oBACZ,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC;oBACpC,WAAW,EACT,uLAAuL;iBAC1L;gBACD,WAAW,EAAE;oBACX,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,GAAG,wBAAwB,glBAAglB;iBAC9mB;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC"}
@@ -0,0 +1,72 @@
1
+ import { LITERAL_PROMPT_OVERRIDE } from '../../../contracts/promptOverrideMarker.js';
2
+ export const definition = {
3
+ type: 'function',
4
+ function: {
5
+ name: 'generate_music',
6
+ description: 'Generate music from a text description. Creates original songs with optional lyrics, BPM, key signature, and duration control. Use when the user wants to create music, a song, a beat, a melody, background music, or any audio content.',
7
+ parameters: {
8
+ type: 'object',
9
+ properties: {
10
+ prompt: {
11
+ type: 'string',
12
+ description: `Genre, mood, and style description for the music. Be specific about musical characteristics.
13
+
14
+ ${LITERAL_PROMPT_OVERRIDE}
15
+
16
+ Examples:
17
+ - "upbeat electronic dance music with driving bass and synth arpeggios"
18
+ - "mellow jazz ballad with soft piano, brushed drums, and walking bass"
19
+ - "epic orchestral soundtrack with soaring strings and powerful brass"
20
+ - "lo-fi hip hop beat with vinyl crackle, muted keys, and chill vibes"
21
+ - "acoustic folk song with fingerpicked guitar and warm harmonies"
22
+
23
+ Include:
24
+ - Genre (rock, jazz, electronic, classical, hip-hop, etc.)
25
+ - Mood (happy, melancholic, energetic, relaxing, epic, etc.)
26
+ - Instruments (piano, guitar, drums, synth, strings, etc.)
27
+ - Style descriptors (driving, mellow, atmospheric, punchy, etc.)
28
+
29
+ BATCH VARIATIONS: When numberOfVariations > 1, use Dynamic Prompt syntax to vary ONE dimension across separate tracks. Lock in any genre/mood/instruments the user specified, vary the rest. Example: "{lo-fi hip hop beat with muted keys|jazz piano trio with brushed drums|ambient electronic with soft pads} with warm reverb and vinyl texture".`,
30
+ },
31
+ duration: {
32
+ type: 'number',
33
+ description: 'Duration in seconds. Default: 30. Range: 10-600 (10 seconds to 10 minutes). Short clips: 10-30s. Standard songs: 120-300s.',
34
+ minimum: 10,
35
+ maximum: 600,
36
+ },
37
+ bpm: {
38
+ type: 'number',
39
+ description: 'Beats per minute / tempo. Default: 120. Range: 30-300. Slow ballad: 60-80. Mid-tempo: 90-120. Upbeat: 120-140. Fast dance: 140-180. Very fast: 180+.',
40
+ minimum: 30,
41
+ maximum: 300,
42
+ },
43
+ keyscale: {
44
+ type: 'string',
45
+ description: 'Musical key and scale. E.g., "C major", "A minor", "F# minor", "Bb major". Default: "C major". Only set when the user specifies a key or when a particular mood calls for it (minor keys for sad/dark, major for happy/bright).',
46
+ },
47
+ lyrics: {
48
+ type: 'string',
49
+ description: 'Song lyrics. Optional — omit for instrumental music. Format: write lyrics naturally with line breaks. The model will attempt to sing these lyrics with the generated music. Works best with clear, rhythmic phrasing that matches the BPM.',
50
+ },
51
+ model: {
52
+ type: 'string',
53
+ enum: ['turbo', 'sft'],
54
+ description: 'ACE-Step model variant. "turbo" (default): Higher quality audio generation with 4-16 steps and half the cost. Always use turbo unless the user explicitly requests the SFT model. "sft": Experimental model with lower audio quality but very strong lyric handling. 10-200 steps, full cost. Only use when the user specifically asks for SFT. Default: "turbo".',
55
+ },
56
+ timesig: {
57
+ type: 'number',
58
+ enum: [2, 3, 4, 6],
59
+ description: 'Time signature (beats per measure). 4 = 4/4 time (default, most common). 3 = 3/4 time (waltz). 2 = 2/4 time (march). 6 = 6/8 time (compound). Default: 4.',
60
+ },
61
+ numberOfVariations: {
62
+ type: 'number',
63
+ description: 'Number of variations (1-16). Use 1 unless user requests multiple. Default: 1.',
64
+ minimum: 1,
65
+ maximum: 16,
66
+ },
67
+ },
68
+ required: ['prompt'],
69
+ },
70
+ },
71
+ };
72
+ //# sourceMappingURL=definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"definition.js","sourceRoot":"","sources":["../../../../src/tools/definitions/generate-music/definition.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,uBAAuB,EAAE,MAAM,4CAA4C,CAAC;AAErF,MAAM,CAAC,MAAM,UAAU,GAAmB;IACxC,IAAI,EAAE,UAAU;IAChB,QAAQ,EAAE;QACR,IAAI,EAAE,gBAAgB;QACtB,WAAW,EACT,2OAA2O;QAC7O,UAAU,EAAE;YACV,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE;;EAErB,uBAAuB;;;;;;;;;;;;;;;sVAe6T;iBAC7U;gBACD,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,4HAA4H;oBAC9H,OAAO,EAAE,EAAE;oBACX,OAAO,EAAE,GAAG;iBACb;gBACD,GAAG,EAAE;oBACH,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,sJAAsJ;oBACxJ,OAAO,EAAE,EAAE;oBACX,OAAO,EAAE,GAAG;iBACb;gBACD,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,iOAAiO;iBACpO;gBACD,MAAM,EAAE;oBACN,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,4OAA4O;iBAC/O;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC;oBACtB,WAAW,EACT,mWAAmW;iBACtW;gBACD,OAAO,EAAE;oBACP,IAAI,EAAE,QAAQ;oBACd,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;oBAClB,WAAW,EACT,2JAA2J;iBAC9J;gBACD,kBAAkB,EAAE;oBAClB,IAAI,EAAE,QAAQ;oBACd,WAAW,EACT,+EAA+E;oBACjF,OAAO,EAAE,CAAC;oBACV,OAAO,EAAE,EAAE;iBACZ;aACF;YACD,QAAQ,EAAE,CAAC,QAAQ,CAAC;SACrB;KACF;CACF,CAAC"}
@@ -0,0 +1,117 @@
1
+ import { GENERATE_VIDEO_SKIP_PROMPT_PROCESSING_DESCRIPTION, LITERAL_VIDEO_PROMPT_OVERRIDE, SEEDANCE_EXPAND_PROMPT_DESCRIPTION, SEEDANCE_TOOL_MULTIMODAL_REFERENCE_GUIDANCE, } from '../../../contracts/toolPromptMarkers.js';
2
+ import { ASPECT_RATIO_DESCRIPTION } from '../../../media/index.js';
3
+ export const definition = {
4
+ type: "function",
5
+ function: {
6
+ name: "generate_video",
7
+ description: 'Generate a video from text or Seedance multimodal references. LTX 2.3 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 (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 or seedance2-fast, default to exactly one 4-15s video 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, preserve the requested total duration in the prompt/context; chat orchestration should split it into supported segment renders and stitch them instead of clamping it to a 15s excerpt. Uploaded/generated storyboard, shot-sheet, or trailer-concept images used as Seedance references should become one Seedance generate_video call by default; 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" instead of this tool. 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 per-scene GPT Image 2 keyframes, then render Seedance scene clips and stitch them. 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.',
8
+ parameters: {
9
+ type: "object",
10
+ properties: {
11
+ prompt: {
12
+ type: "string",
13
+ description: `Write one flowing paragraph like a cinematographer describing a shot. Present tense, specific natural language. Longer clips need longer prompts; close-ups need more detail than wide shots.
14
+
15
+ ${LITERAL_VIDEO_PROMPT_OVERRIDE}
16
+
17
+ STRUCTURE: shot/style → subject (age, clothing, hairstyle, distinguishing details) → environment, lighting, atmosphere → action beat by beat → camera movement → audio and dialogue.
18
+
19
+ CAST CONTINUITY: For screenplay, script, storyboard, commercial, series, or other longer-form video tasks with recurring characters, use stable character names and repeat the same visual anchors every time they appear (age range, build, hairstyle, outfit silhouette, color palette, signature prop/accessory, posture, voice). Do not rename, merge, redesign, or drift characters between scenes unless the user asks.
20
+
21
+ MOTION PACING: Scale complexity to duration. <=6s: 1 main action beat + 1 simple camera move. Around 10s: 2-3 clear action beats + 1 camera move. >10s: up to 4 action beats in clear sequence. Prefer fewer readable beats over dense micro-actions, especially in short clips.
22
+
23
+ BLOCKING: Direct the layout like scene blocking. State left/right placement, foreground/background, facing toward/away, and relative distance when multiple subjects or important objects are involved.
24
+
25
+ ACTION: Drive motion with concrete verbs. Specify who moves, what moves, how it moves, and what the camera does. Avoid generic phrases like "comes alive."
26
+
27
+ DIALOGUE: Put user-provided spoken lines in double quotes. For screenplay-style or longer-form tasks, prefix each spoken line with a stable speaker tag outside the quotes, e.g. CHARACTER: "We made it." Break long speech into short quoted phrases with acting beats between them (gestures, pauses, glances). If the user asks for speech but provides no exact words, describe the visible delivery, voice quality, and emotion without inventing quoted dialogue; ask only when exact wording is the point of the request. Never write placeholders such as "while speaking", "dialogue begins", "explaining", or "final line lands". Show emotion through visible behavior — not "she is sad", instead "she looks down, pauses, and her voice cracks". QUOTING RULE: ONLY use double quotes for spoken dialogue. Never quote on-screen text, overlay text, titles, captions, signs, or any visual text — describe them without quotes.
28
+
29
+ STORYBOARD TEXT: For storyboard references, structural headings, section numbers, slide titles, panel titles, and captions may become short audio-only narration/voiceover or key-message beats, but they are not subtitles, title cards, lower thirds, or visible overlays unless the user explicitly asks for visible text/on-screen text/title card/subtitle/lower third/signage/CTA. Do not concatenate storyboard labels into run-on voiceover; use separate brief phrases with pauses.
30
+
31
+ AUDIO: Prompt sound intentionally — voice quality, volume, room tone, ambience, music, weather, footsteps. Include language or accent if relevant. Useful voice/volume anchors: whisper, mutter, shout, scream, energetic announcer, resonant voice with gravitas, distorted radio-style, robotic monotone, childlike curiosity.
32
+
33
+ CAMERA: Cinematic terms — close-up, tracking shot, dolly in, handheld, slow arc, static frame. Describe movement relative to subject.
34
+
35
+ For specific characters (movies, TV): describe visual appearance — don't rely on names alone.
36
+
37
+ For complex/creative scenes (characters, dialogue, skits): capture the full creative intent. The system auto-expands into a detailed prompt.
38
+
39
+ AVOID: Vague prompts, too many characters at once, conflicting lighting logic, readable text or logos, abstract emotions with no visible behavior, rigid numeric constraints (exact angles, counts, speeds).
40
+
41
+ BATCH VARIATIONS: When numberOfVariations > 1, use Dynamic Prompt syntax. Lock in any camera/subject/style the user specified, vary the rest. Example: "slow dolly in on a city street {at dawn with golden light|during a rainstorm|at night with neon reflections}".`,
42
+ },
43
+ expandPrompt: {
44
+ type: "boolean",
45
+ description: SEEDANCE_EXPAND_PROMPT_DESCRIPTION,
46
+ },
47
+ skipPromptProcessing: {
48
+ type: "boolean",
49
+ description: GENERATE_VIDEO_SKIP_PROMPT_PROCESSING_DESCRIPTION,
50
+ },
51
+ duration: {
52
+ type: "number",
53
+ description: "Video duration in seconds. Default: 5. Range: 2-20. Use when the user explicitly requests a specific length.",
54
+ minimum: 2,
55
+ maximum: 20,
56
+ },
57
+ negativePrompt: {
58
+ type: "string",
59
+ description: "Non-Seedance only. Optional negative prompt for video models that expose a separate negative-prompt field. Do not set for seedance2 or seedance2-fast; rewrite user-provided Seedance avoid/ban/no-X requests as positive visual instructions in prompt.",
60
+ },
61
+ videoModel: {
62
+ type: "string",
63
+ enum: ["ltx23", "wan22", "seedance2", "seedance2-fast"],
64
+ description: 'Video model. "ltx23" (default): LTX 2.3 with native audio; Fast/HQ use the distilled 8-step worker and Default Media Quality Pro uses the non-distilled dev worker. "wan22": Fast 4-step, simple motion, no audio. Default: "ltx23". For ordinary Seedance 2.0 video requests, use seedance2-fast by default: 720p unless Default Media Quality is Fast, which should use 480p. Use seedance2 when the user explicitly asks for 1080p / the non-standard full-quality version, or whenever a generated/uploaded video storyboard image is the Seedance reference unless the user explicitly asks for a draft or the Seedance fast model/version. Storyboard-reference Seedance requests default to High Quality: set targetResolution 720 even when Default Media Quality is Fast, unless the user explicitly asks for another named resolution such as 480p. Default Media Quality Pro alone is not an explicit 1080p request; keep default Seedance resolution at 720p unless the user asks for 1080p or another resolution. ' +
65
+ SEEDANCE_TOOL_MULTIMODAL_REFERENCE_GUIDANCE,
66
+ },
67
+ generateAudio: {
68
+ type: "boolean",
69
+ description: "Seedance only. Whether Seedance should generate a native audio track. Omit by default; set false only when the user explicitly asks for silent output or no audio.",
70
+ },
71
+ referenceImageIndices: {
72
+ type: "array",
73
+ items: { type: "number" },
74
+ description: "Seedance only. Image references for @Image tags. Use negative indices for uploaded images (-1 first upload, -2 second upload) and non-negative indices for generated image results. Omit by default: uploaded images are auto-forwarded as @Image references. Anchor frame intent in the prompt with @Image tags: \"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.\" Do not use animate_photo sourceImageIndex/frameRole/endImageIndex for Seedance.",
75
+ },
76
+ referenceVideoIndices: {
77
+ type: "array",
78
+ items: { type: "number" },
79
+ description: 'Seedance only. Optional loose video references. Use negative indices for uploaded videos (-1 first uploaded video, -2 second uploaded video) and non-negative indices for generated video results. Omit by default: uploaded videos are auto-forwarded as @Video references. Set to choose a subset or include previously generated video URLs. Do not use this for uploaded source-video transforms, upscales, enhancements, restyles, or remasters; use video_to_video with controlMode="seedance-v2v" instead.',
80
+ },
81
+ referenceAudioIndices: {
82
+ type: "array",
83
+ items: { type: "number" },
84
+ description: 'Seedance only. Optional loose audio references. Use negative indices for uploaded audio files (-1 first uploaded audio, -2 second uploaded audio) and non-negative indices for generated audio results. Omit by default: uploaded audio is auto-forwarded as @Audio references when the Seedance request also has an image or video reference. Use this only for loose background, mood, timing, or style references under an image/video-anchored Seedance shot. 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" instead. Audio-only Seedance requests are unsupported; use sound_to_video for uploaded-audio-only workflows.',
85
+ },
86
+ width: {
87
+ type: "number",
88
+ description: 'Video width in pixels. LTX 2.3: 640-3840. WAN: 480-1536. Default resolution depends on model and quality tier: LTX Fast about 720p and High/Pro about 1080p; WAN Fast uses 480p short side and High/Pro uses 720p short side. Set width only when the user specifies an exact width or orientation-qualified exact pixels. A bare named resolution like "720p resolution" is a short-side target, not an instruction to make landscape 1280x720. If the user gives only one exact dimension, set only that dimension and preserve/infer the sensible aspect ratio. User-requested exact dimensions override the default media quality. Mappings when orientation is explicit: 480p landscape=854x480, 480p portrait=480x854, 720p landscape=1280x720, 720p portrait=720x1280, 1080p landscape=1920x1080, 1080p portrait=1080x1920, 4K landscape=3840x2160. Non-step values are accepted when in bounds; LTX snaps to the nearest 64px step and WAN snaps to the nearest 16px step internally, so do not ask the user to adjust by a few pixels.',
89
+ },
90
+ height: {
91
+ type: "number",
92
+ description: 'Video height in pixels. LTX 2.3: 640-3840. WAN: 480-1536. Set height only when the user specifies an exact height or orientation-qualified exact pixels. A bare named resolution like "720p resolution" is a short-side target; do not convert it to landscape dimensions unless the user says landscape/horizontal/widescreen. If the user gives only one exact dimension, set only that dimension and preserve/infer the sensible aspect ratio. User-requested exact dimensions override Default Media Quality, including Pro. Non-step values are accepted when in bounds; LTX snaps to the nearest 64px step and WAN snaps to the nearest 16px step internally, so do not ask the user to adjust by a few pixels.',
93
+ },
94
+ targetResolution: {
95
+ type: "number",
96
+ description: 'Short-side video resolution target in pixels. Use when the user asks for a bare named resolution such as "480p", "720p", or "1080p" without exact pixels or an output orientation. Also set for default Seedance 2.0 requests: 480 when Default Media Quality is Fast, otherwise 720, including Pro unless the user explicitly asks for 1080p or another resolution. For generated/uploaded storyboard images used as Seedance references, default to 720 even when Default Media Quality is Fast; only use 480 when the user explicitly asks for 480p. This preserves/inherits the current video shape instead of forcing landscape. Do NOT set width, height, or exact-pixel aspectRatio for bare named resolution requests. If the user says "720p portrait" or "720p landscape", use exact width/height/aspectRatio instead.',
97
+ },
98
+ numberOfVariations: {
99
+ type: "number",
100
+ description: "Number of variations (1-16). Use 1 unless user explicitly requests multiple separate video outputs. For Seedance, default to 1 because each variation is an expensive separate render.",
101
+ minimum: 1,
102
+ maximum: 16,
103
+ },
104
+ aspectRatio: {
105
+ type: "string",
106
+ description: ASPECT_RATIO_DESCRIPTION,
107
+ },
108
+ voicePersonaName: {
109
+ type: "string",
110
+ 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.',
111
+ },
112
+ },
113
+ required: ["prompt"],
114
+ },
115
+ },
116
+ };
117
+ //# sourceMappingURL=definition.js.map