@mindstudio-ai/agent 0.1.146 → 0.1.147

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.
package/llms.txt CHANGED
@@ -264,6 +264,16 @@ Automatically add subtitles to a video
264
264
  - Input: `{ videoUrl: string, language: string, fontName: string, fontSize: number, fontWeight: "normal" | "bold" | "black", fontColor: "white" | "black" | "red" | "green" | "blue" | "yellow" | "orange" | "purple" | "pink" | "brown" | "gray" | "cyan" | "magenta", highlightColor: "white" | "black" | "red" | "green" | "blue" | "yellow" | "orange" | "purple" | "pink" | "brown" | "gray" | "cyan" | "magenta", strokeWidth: number, strokeColor: "black" | "white" | "red" | "green" | "blue" | "yellow" | "orange" | "purple" | "pink" | "brown" | "gray" | "cyan" | "magenta", backgroundColor: "black" | "white" | "red" | "green" | "blue" | "yellow" | "orange" | "purple" | "pink" | "brown" | "gray" | "cyan" | "magenta" | "none", backgroundOpacity: number, position: "top" | "center" | "bottom", yOffset: number, wordsPerSubtitle: number, enableAnimation: boolean, intermediateAsset?: boolean }`
265
265
  - Output: `{ videoUrl: string }`
266
266
 
267
+ #### addThumbnailToVideo
268
+ Set a video's thumbnail: embedded as its cover art, and optionally as its opening frames
269
+ - Almost everything that shows a video without a poster shows its first frame (a web page's video, link previews, the platform's own), so a video that fades in from black has a black thumbnail
270
+ - Pass the thumbnail as `imageUrl` (a designed cover) or as `at`, a moment of the video in seconds
271
+ - The thumbnail is always embedded as the video's cover art, its streams copied as they are; desktop players and file browsers show it, browsers and social platforms don't
272
+ - `asFirstFrame` also shows it for the video's first 0.2 seconds, fitted to the frame over black, so first-frame thumbnails are it too; that re-encodes the video, keeping its length and audio
273
+ - Returns the video as an mp4, and the thumbnail as `thumbnailUrl` (a png) for a web page's poster or a platform that takes a cover image
274
+ - Input: `{ videoUrl: string, imageUrl?: string, at?: number, asFirstFrame?: boolean, intermediateAsset?: boolean }`
275
+ - Output: `{ videoUrl: string, thumbnailUrl: string }`
276
+
267
277
  #### analyzeImage
268
278
  Analyze an image using a vision model based on a text prompt.
269
279
  - Uses the configured vision model to generate a text analysis of the image.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindstudio-ai/agent",
3
- "version": "0.1.146",
3
+ "version": "0.1.147",
4
4
  "description": "TypeScript SDK for MindStudio direct step execution",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",