@mindstudio-ai/agent 0.1.151 → 0.1.153
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/dist/cli.js +16 -16
- package/dist/index.d.ts +34 -12
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +16 -16
- package/llms.txt +30 -12
- package/package.json +1 -1
package/llms.txt
CHANGED
|
@@ -285,8 +285,10 @@ Analyze an image using a vision model based on a text prompt.
|
|
|
285
285
|
|
|
286
286
|
#### analyzeVideo
|
|
287
287
|
Analyze a video using a video analysis model based on a text prompt.
|
|
288
|
-
-
|
|
289
|
-
- The
|
|
288
|
+
- The prompt describes what to look for or extract from the video.
|
|
289
|
+
- The default model is gemini-3.8-flash. Any Gemini chat model reads video (the 3.x Flash and Flash Lite models, gemini-3.1-pro, and the 2.5 family), as does TwelveLabs' pegasus-1.6; set one with `videoAnalysisModelOverride`, with `temperature` and `maxResponseTokens` beside `model`.
|
|
290
|
+
- `videoUrl` is a video file's URL (an app file, a Google Drive share link, or any public URL). Gemini also reads a public YouTube link; Pegasus doesn't.
|
|
291
|
+
- Length: Pegasus takes 1 second to 1 hour. Gemini takes about 3 hours at its default resolution; the 3.x models read a second of video as about 66 tokens and the 2.5 models as about 258, which is what a long video costs.
|
|
290
292
|
- Input: `{ prompt: string, videoUrl: string, videoAnalysisModelOverride?: { model: string, config?: object } | { model: string, temperature: number, maxResponseTokens: number, ignorePreamble?: boolean, userMessagePreprocessor?: { dataSource?: string, messageTemplate?: string, maxResults?: number, enabled?: boolean, shouldInherit?: boolean }, preamble?: string, multiModelEnabled?: boolean, editResponseEnabled?: boolean, promptCaching?: boolean, config?: object } }`
|
|
291
293
|
- Output: `{ analysis: string }`
|
|
292
294
|
|
|
@@ -332,10 +334,11 @@ Create a draft email in the connected Gmail account.
|
|
|
332
334
|
|
|
333
335
|
#### decomposeImage
|
|
334
336
|
Split an image into a base image and transparent layers.
|
|
335
|
-
- Uses Seedream 5.0 Flash layer decomposition.
|
|
336
|
-
-
|
|
337
|
-
-
|
|
338
|
-
-
|
|
337
|
+
- Uses Seedream 5.0 Flash layer decomposition by default, and Seedream 5.0 Pro when type is "advanced", which separates more cleanly and costs more (and twice as much at 2K).
|
|
338
|
+
- `resolution` is "1k", "1.5k" or "2k" (the default).
|
|
339
|
+
- An optional prompt names the objects or groupings to separate. Left out, the model separates the main elements itself: text, subjects, decorations and background.
|
|
340
|
+
- The output is an array of hosted PNG image URLs: first the base image at full size, then each separated element as a transparent layer cropped to the element. The layers come with no position, so placing one back over the base means finding where it sat. Flash returned 13 layers for one photo and Pro 16.
|
|
341
|
+
- Input: `{ image: string, prompt?: string, type?: "standard" | "advanced", resolution?: "1k" | "1.5k" | "2k", intermediateAsset?: boolean }`
|
|
339
342
|
- Output: `{ imageUrls: string[] }`
|
|
340
343
|
|
|
341
344
|
#### deleteDataSource
|
|
@@ -455,8 +458,12 @@ Fetch recent message history from a Slack channel.
|
|
|
455
458
|
|
|
456
459
|
#### generate3dModel
|
|
457
460
|
Generate a 3D model using a 3D generation model.
|
|
458
|
-
-
|
|
459
|
-
-
|
|
461
|
+
- The default model is wavespeed-tripo3d-h3.1 (Tripo v3.1), which makes a model from the prompt, from one `image`, or from `images`: 2–4 views of the same object, in order front, left, back, right.
|
|
462
|
+
- Models and what they take, set in `threeDModelOverride.config`:
|
|
463
|
+
- From text or an image: wavespeed-tripo3d-h3.1, wavespeed-meshy7.1 (also `images`, 1–4 views), wavespeed-hunyuan3d-v3 (an `image`, plus optional `back_image_url`, `left_image_url`, `right_image_url`), wavespeed-hunyuan-3d-v3.1-rapid, wavespeed-tripo3d-p2, wavespeed-rodin-v2.5 (`images`, 1–5).
|
|
464
|
+
- From an image only: trellis-2, wavespeed-meshy7 (or `images`, 1–4 views), wavespeed-tripo3d-v2.5, seed3d-2.0, wavespeed-sam-3d-objects (with optional `mask_images`).
|
|
465
|
+
- From views: wavespeed-hi3d-v3.0 (`front_image`, and optional `back_image`, `left_image`, `right_image`).
|
|
466
|
+
- `$mode` in the config picks a model's mode (`text-to-3d`, `image-to-3d`, or its multi-view mode). Left out, `images` picks the multi-view mode and `image` picks image-to-3d; with neither, the model's default mode. A text mode needs the prompt; in the others the prompt is optional guidance. A prompt longer than the model reads is refused, not cut.
|
|
460
467
|
- The output is standardized as a GLB URL plus optional FBX/OBJ/USDZ, thumbnail, texture maps, and provider task ID.
|
|
461
468
|
- Input: `{ prompt?: string, intermediateAsset?: boolean, threeDModelOverride?: { model: string, config?: object } }`
|
|
462
469
|
- Output: `{ prompt?: string, glbUrl: string, fbxUrl?: string, objUrl?: string, usdzUrl?: string, thumbnailUrl?: string, textureUrls?: object[], providerTaskId?: string, resolvedConfig?: object }`
|
|
@@ -489,14 +496,23 @@ Generate a lip sync video from audio and an image or video.
|
|
|
489
496
|
|
|
490
497
|
#### generateMusic
|
|
491
498
|
Generate an audio file from provided instructions (text) using a music model.
|
|
492
|
-
-
|
|
499
|
+
- `text` describes the song: genre, mood, instruments, tempo, vocals, and for Lyria its structure (`[Verse]`, `[Chorus]`, timestamps such as `[0:00-0:20] Intro`). A text longer than the model reads is refused, not cut.
|
|
500
|
+
- The default model is elevenlabs-music_v2.5. Options go in `musicModelOverride.config`, and differ by model:
|
|
501
|
+
- elevenlabs-music_v2.5, elevenlabs-music_v2: `musicLengthMs`, the song's length from 3,000 to 600,000 (the model chooses one from the text otherwise, and holds a length it's given), and `forceInstrumental: true` for no vocals.
|
|
502
|
+
- lyria-3.5: songs of up to about three minutes, their length steered from the text; `image`, the URL of an image for the song to take its mood and subject from. lyria-3 makes 30-second clips, lyria-3-pro songs of up to about three minutes.
|
|
503
|
+
- minimax-music-3.0: `lyrics` (written from the text when left out), `is_instrumental: true`, `bitrate`, `sample_rate`. minimax-music-2.5 requires `lyrics`.
|
|
493
504
|
- In foreground mode, the audio is displayed to the user. In background mode, the URL is saved to a variable.
|
|
494
505
|
- Input: `{ text: string, intermediateAsset?: boolean, musicModelOverride?: { model: string, config?: object } }`
|
|
495
506
|
- Output: `{ audioUrl: string }`
|
|
496
507
|
|
|
497
508
|
#### generateSound
|
|
498
509
|
Generate a sound effect from a text description using a sound model.
|
|
499
|
-
-
|
|
510
|
+
- `text` describes the sound effect to generate.
|
|
511
|
+
- The default model is elevenlabs-sound_v2. Options go in `soundModelOverride.config`:
|
|
512
|
+
- `durationSeconds` — the length, from 0.5 to 30. Left out, the model picks one from the text, and the effect is billed as 5 seconds whatever its length.
|
|
513
|
+
- `loop: true` — a sound that repeats with no audible start or end, for ambience and backgrounds.
|
|
514
|
+
- `promptInfluence` — how literally the text is followed, from 0 to 1 (default 0.3).
|
|
515
|
+
- `outputFormat` — MP3 (`mp3_44100_128` by default, up to `mp3_44100_192`) or Opus (`opus_48000_32` to `opus_48000_192`).
|
|
500
516
|
- In foreground mode, the audio is displayed to the user. In background mode, the URL is saved to a variable.
|
|
501
517
|
- Input: `{ text: string, intermediateAsset?: boolean, soundModelOverride?: { model: string, config?: object } }`
|
|
502
518
|
- Output: `{ audioUrl: string }`
|
|
@@ -525,8 +541,10 @@ the server-side plumbing.
|
|
|
525
541
|
- Output: `{ content: string }`
|
|
526
542
|
|
|
527
543
|
#### generateVideo
|
|
528
|
-
Generate a video from a text prompt using an AI model.
|
|
529
|
-
- Prompts should be descriptive but concise (roughly 3–6 sentences).
|
|
544
|
+
Generate a video from a text prompt, an image or references, using an AI model.
|
|
545
|
+
- Prompts should be descriptive but concise (roughly 3–6 sentences): the subject, the motion, the camera and the sound. A prompt longer than the model reads is refused, not cut.
|
|
546
|
+
- The default model is wan3.0-video. Options go in `videoModelOverride.config` under the model's own names, and differ by model, so look the model up before writing the call. Images, videos and audio go there too, as URLs: a first frame is `image` on most models, `image_url` on Veo, gemini-omni-flash, Runway's and minimax-h3-max, `source_image` on Grok Imagine, `start_frame` on ray-2 and `first_frame_image` on skyreels-v4.
|
|
547
|
+
- A model that makes video more than one way takes `$mode` in its config (`text-to-video`, `image-to-video`, `reference-to-video`, `video-edit` and others it lists). Left out, a first frame or reference images in the config pick their mode, and otherwise the model's default runs.
|
|
530
548
|
- Videos are hosted on the public CDN by default, or in one of the app's own file stores when the call passes `store` — a private store keeps the video private, with no public copy left behind.
|
|
531
549
|
- In foreground mode, the video is displayed to the user. In background mode, the URL is saved to a variable.
|
|
532
550
|
- When generateVariants is true with numVariants > 1, multiple videos are generated in parallel.
|