beplus-mcp 0.50.0 → 0.51.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.
- package/dist/index.js +13 -8
- package/dist/index.js.map +1 -1
- package/dist/remote-server.js +13 -8
- package/dist/remote-server.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -26266,7 +26266,7 @@ ${BUDGET_BLOCKED_GUIDANCE}`);
|
|
|
26266
26266
|
"seedance-2.0-fast = barato/r\xE1pido; seedance-2.5 = at\xE9 30s num take, 50 refs e at\xE9 1080p; seedance-2.0 = \xFAnico com 4K; kling-v3-video = alternativa."
|
|
26267
26267
|
),
|
|
26268
26268
|
aspect_ratio: external_exports.enum(VIDEO_ASPECT_RATIOS).optional().describe("Propor\xE7\xE3o. Padr\xE3o 16:9. `adaptive` (herda dos inputs) s\xF3 no seedance-2.5."),
|
|
26269
|
-
resolution: external_exports.enum(VIDEO_RESOLUTIONS).optional().describe("480p/720p/1080p/4K (4K S\xD3 no seedance-2.0 standard;
|
|
26269
|
+
resolution: external_exports.enum(VIDEO_RESOLUTIONS).optional().describe("480p/720p/1080p/4K (4K direto S\xD3 no seedance-2.0 standard; no 2.5 o 4K \xE9 s\xF3 na vers\xE3o final de um draft, com draft_task_id; fast e mini param em 720p). Padr\xE3o 720p."),
|
|
26270
26270
|
duration: external_exports.number().int().min(3).max(60).optional().describe(
|
|
26271
26271
|
"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."
|
|
26272
26272
|
),
|
|
@@ -26301,7 +26301,7 @@ ${BUDGET_BLOCKED_GUIDANCE}`);
|
|
|
26301
26301
|
'Draft Mode (s\xF3 seedance-2.5, nos dois provedores): gera um preview 480p barato para validar composi\xE7\xE3o/movimento antes de pagar o 1080p. `resolution` fica em 480p (omita ou use "480p"). Depois de check_generation mostrar "completed", o `draft_task_id` e o provedor v\xEAm no retorno \u2014 \xE9 o que voc\xEA passa no pr\xF3ximo generate_video para render a vers\xE3o final, a mesma tomada, sem regenerar do zero.'
|
|
26302
26302
|
),
|
|
26303
26303
|
draft_task_id: external_exports.string().min(1).optional().describe(
|
|
26304
|
-
|
|
26304
|
+
'Gera a vers\xE3o final (1080p, ou 4K s\xF3 no provider byteplus) de um draft j\xE1 pronto (feito com `draft: true`). Passe aqui o `draft_task_id` que check_generation devolveu para aquele draft \u2014 N\xC3O o generation_id \u2014 e o MESMO `provider` do draft (o id s\xF3 vale no provedor que gerou). Prompt/refs/seed/ratio/\xE1udio s\xE3o HERDADOS do draft, n\xE3o os reenvie. `duration` \xE9 OBRIGAT\xD3RIO e tem que ser exatamente a dura\xE7\xE3o do draft original (\xE9 o que precifica certo); `resolution` \xE9 "1080p" (padr\xE3o) ou "4K" (s\xF3 byteplus). Drafts expiram em 7 dias.'
|
|
26305
26305
|
)
|
|
26306
26306
|
}
|
|
26307
26307
|
},
|
|
@@ -26312,7 +26312,7 @@ ${BUDGET_BLOCKED_GUIDANCE}`);
|
|
|
26312
26312
|
"bytedance/seedance-2.0-fast": ["480p", "720p"],
|
|
26313
26313
|
"bytedance/seedance-2.5": ["480p", "720p", "1080p"]
|
|
26314
26314
|
};
|
|
26315
|
-
const allowedResolutions = args.model ? MAX_RESOLUTION[args.model] : void 0;
|
|
26315
|
+
const allowedResolutions = args.model && !args.draft_task_id ? MAX_RESOLUTION[args.model] : void 0;
|
|
26316
26316
|
if (allowedResolutions && args.resolution && !allowedResolutions.includes(args.resolution)) {
|
|
26317
26317
|
return errorResult(
|
|
26318
26318
|
`${args.model} s\xF3 suporta ${allowedResolutions.join(" ou ")} (voc\xEA pediu ${args.resolution}). Use seedance-2.0 (standard) para 4K.`
|
|
@@ -26338,8 +26338,11 @@ ${BUDGET_BLOCKED_GUIDANCE}`);
|
|
|
26338
26338
|
if (args.duration == null) {
|
|
26339
26339
|
return errorResult("Ao usar `draft_task_id`, `duration` \xE9 obrigat\xF3rio \u2014 a mesma dura\xE7\xE3o do draft original.");
|
|
26340
26340
|
}
|
|
26341
|
-
if (args.resolution && args.resolution !== "1080p") {
|
|
26342
|
-
return errorResult('
|
|
26341
|
+
if (args.resolution && args.resolution !== "1080p" && args.resolution !== "4K") {
|
|
26342
|
+
return errorResult('A vers\xE3o final de um draft sai em 1080p ou 4K. Omita `resolution` (1080p) ou use "4K".');
|
|
26343
|
+
}
|
|
26344
|
+
if (args.resolution === "4K" && (args.provider === "fal" || args.real_people_references)) {
|
|
26345
|
+
return errorResult('O 4K da vers\xE3o final s\xF3 existe no provider "byteplus". Na fal, use 1080p.');
|
|
26343
26346
|
}
|
|
26344
26347
|
}
|
|
26345
26348
|
if (!isSeedance25 && args.video_task_type && args.video_task_type !== "auto") {
|
|
@@ -26398,7 +26401,7 @@ ${BUDGET_BLOCKED_GUIDANCE}`);
|
|
|
26398
26401
|
const refVideos = await resolveRefs(cfg, args.reference_videos);
|
|
26399
26402
|
const input = args.draft_task_id ? compact({
|
|
26400
26403
|
draft_task_id: args.draft_task_id,
|
|
26401
|
-
resolution: "1080p",
|
|
26404
|
+
resolution: args.resolution === "4K" ? "4K" : "1080p",
|
|
26402
26405
|
duration: args.duration,
|
|
26403
26406
|
output_format: args.output_format,
|
|
26404
26407
|
seedanceProvider
|
|
@@ -26487,7 +26490,7 @@ ${BUDGET_BLOCKED_GUIDANCE}`);
|
|
|
26487
26490
|
const draftProvider = status.seedance_provider ?? "byteplus";
|
|
26488
26491
|
const draftHint = status.draft_task_id ? `
|
|
26489
26492
|
|
|
26490
|
-
\u{1F3AC} Draft pronto (provedor: ${draftProvider === "fal" ? "fal.ai" : "BytePlus"}) \u2014 pra gerar em 1080p, chame generate_video de novo com draft_task_id: "${status.draft_task_id}", provider: "${draftProvider}" e a mesma duration deste draft.` : "";
|
|
26493
|
+
\u{1F3AC} Draft pronto (provedor: ${draftProvider === "fal" ? "fal.ai" : "BytePlus"}) \u2014 pra gerar em ${draftProvider === "fal" ? "1080p" : '1080p ou 4K (resolution: "4K")'}, chame generate_video de novo com draft_task_id: "${status.draft_task_id}", provider: "${draftProvider}" e a mesma duration deste draft.` : "";
|
|
26491
26494
|
return { content: [{ type: "text", text: `\u2705 Pronto.
|
|
26492
26495
|
${list}${flagsLine(status)}${draftHint}` }, ...blocks] };
|
|
26493
26496
|
}
|
|
@@ -27555,6 +27558,7 @@ Limites simult\xE2neos por usu\xE1rio: imagem=${m.limits.perUserMaxImage}, v\xED
|
|
|
27555
27558
|
num_images: external_exports.number().int().min(1).optional().describe("Seedream Pro: imagens por pedido; cada uma \xE9 cobrada."),
|
|
27556
27559
|
task_type: external_exports.string().optional().describe('[m\xFAsica] extend e upload_extend usam o pre\xE7o "suno/extend"; os demais, o do modelo.'),
|
|
27557
27560
|
provider: external_exports.enum(["byteplus", "fal"]).optional().describe("Seedance: provedor que vai gerar (padr\xE3o byteplus). `fal` tem pre\xE7o pr\xF3prio, mais caro."),
|
|
27561
|
+
draft_upscale: external_exports.boolean().optional().describe("[seedance-2.5] true = pre\xE7o da vers\xE3o final de um draft (resolution 1080p ou 4K, duration do draft)."),
|
|
27558
27562
|
// Upscale: o preço não sai de uma chave fixa — vem das medidas do
|
|
27559
27563
|
// arquivo (megapixel de saída na imagem, bloco de 10s no vídeo). Sem
|
|
27560
27564
|
// elas o backend responde pelo padrão de 1024²/10s, que não é o preço
|
|
@@ -27604,6 +27608,7 @@ Limites simult\xE2neos por usu\xE1rio: imagem=${m.limits.perUserMaxImage}, v\xED
|
|
|
27604
27608
|
aspect_ratio: args.aspect_ratio,
|
|
27605
27609
|
num_images: args.num_images,
|
|
27606
27610
|
seedance_provider: args.provider === "fal" ? "fal" : void 0,
|
|
27611
|
+
draft_upscale: args.draft_upscale ? "true" : void 0,
|
|
27607
27612
|
upscale_factor: args.upscale_factor,
|
|
27608
27613
|
model_variant: args.model_variant,
|
|
27609
27614
|
source_width: width2,
|
|
@@ -31667,7 +31672,7 @@ N\xF3s: ${Object.entries(ids).map(([k, v]) => `${k}=${v}`).join(" \xB7 ")}` : ""
|
|
|
31667
31672
|
import { createRequire } from "module";
|
|
31668
31673
|
var require2 = createRequire(import.meta.url);
|
|
31669
31674
|
function readVersion() {
|
|
31670
|
-
if ("0.
|
|
31675
|
+
if ("0.51.0") return "0.51.0";
|
|
31671
31676
|
try {
|
|
31672
31677
|
const pkg = require2("../package.json");
|
|
31673
31678
|
return pkg.version ?? "0.0.0-unknown";
|