beplus-mcp 0.17.2 → 0.17.3

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 (2) hide show
  1. package/dist/index.js +15 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -546,6 +546,7 @@ var VOICES = [
546
546
  "Sulafat"
547
547
  ];
548
548
  var ASPECT_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "4:5", "5:4", "21:9"];
549
+ var VIDEO_ASPECT_RATIOS = [...ASPECT_RATIOS, "adaptive"];
549
550
  var IMAGE_RESOLUTIONS = ["1K", "2K", "4K"];
550
551
  var VIDEO_RESOLUTIONS = ["480p", "720p", "1080p", "4K"];
551
552
  var DEFAULTS = {
@@ -825,7 +826,7 @@ ${BUDGET_BLOCKED_GUIDANCE}`);
825
826
  model: z.enum(VIDEO_MODELS).default(DEFAULTS.videoModel).describe(
826
827
  "seedance-2.0-fast = barato/r\xE1pido; seedance-2.5 = at\xE9 30s num take e 50 refs (m\xE1x 720p); seedance-2.0 = \xFAnico com 1080p/4K; kling-v3-video = alternativa."
827
828
  ),
828
- aspect_ratio: z.enum(ASPECT_RATIOS).optional().describe("Propor\xE7\xE3o. Padr\xE3o 16:9."),
829
+ aspect_ratio: z.enum(VIDEO_ASPECT_RATIOS).optional().describe("Propor\xE7\xE3o. Padr\xE3o 16:9. `adaptive` (herda dos inputs) s\xF3 no seedance-2.5."),
829
830
  resolution: z.enum(VIDEO_RESOLUTIONS).optional().describe("480p/720p/1080p/4K (1080p/4K S\xD3 no seedance-2.0 standard; 2.5, fast e mini aceitam apenas 480p/720p). Padr\xE3o 720p."),
830
831
  duration: z.number().int().min(3).max(60).optional().describe(
831
832
  "Dura\xE7\xE3o em segundos. Seedance 2.5: 4\u201330 (granular). Seedance 2.0/2.0-fast: 4\u201315. Kling: 5 ou 10. O backend valida por modelo \u2014 consulte list_models p/ os valores aceitos. Padr\xE3o 5."
@@ -853,6 +854,19 @@ ${BUDGET_BLOCKED_GUIDANCE}`);
853
854
  `${args.model} s\xF3 suporta 480p ou 720p (voc\xEA pediu ${args.resolution}). Use seedance-2.0 (standard) para 1080p/4K.`
854
855
  );
855
856
  }
857
+ if (args.model === "bytedance/seedance-2.5" && args.aspect_ratio) {
858
+ const SEEDANCE_25_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4", "21:9", "adaptive"];
859
+ if (!SEEDANCE_25_RATIOS.includes(args.aspect_ratio)) {
860
+ return errorResult(
861
+ `bytedance/seedance-2.5 n\xE3o aceita a propor\xE7\xE3o ${args.aspect_ratio}. Use uma destas: ${SEEDANCE_25_RATIOS.join(", ")}.`
862
+ );
863
+ }
864
+ }
865
+ if (args.last_frame_image && !(args.first_frame_image ?? args.reference_image)) {
866
+ return errorResult(
867
+ "O \xFAltimo frame (`last_frame_image`) s\xF3 funciona junto com o primeiro (`first_frame_image`)."
868
+ );
869
+ }
856
870
  if (args.duration != null && args.duration !== -1) {
857
871
  const maxDuration = args.model === "bytedance/seedance-2.5" ? 30 : 15;
858
872
  if (args.model.startsWith("bytedance/") && (args.duration < 4 || args.duration > maxDuration)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beplus-mcp",
3
- "version": "0.17.2",
3
+ "version": "0.17.3",
4
4
  "description": "Conector MCP da equipe BePlus — gere imagens/vídeos/áudio e consulte calls, projetos e clientes pela sua conta BePlus (diamantes, limites e histórico aplicados pela plataforma).",
5
5
  "type": "module",
6
6
  "bin": {