beplus-mcp 0.46.0 → 0.47.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 CHANGED
@@ -24401,7 +24401,12 @@ var BeplusClient = class {
24401
24401
  offset: query.offset,
24402
24402
  // Only send when true — the backend treats truthy as "constrain".
24403
24403
  favorite: query.favorite ? "true" : void 0,
24404
- approved: query.approved ? "true" : void 0
24404
+ approved: query.approved ? "true" : void 0,
24405
+ project: query.project,
24406
+ user: query.user,
24407
+ scope: query.scope,
24408
+ type: query.type,
24409
+ cursor: query.cursor
24405
24410
  }
24406
24411
  });
24407
24412
  }
@@ -26425,34 +26430,44 @@ ${list}${flagsLine(status)}${draftHint}` }, ...blocks] };
26425
26430
  "list_generations",
26426
26431
  {
26427
26432
  title: "Listar gera\xE7\xF5es",
26428
- description: 'Lista as suas gera\xE7\xF5es (imagens/v\xEDdeos) mais recentes, com os flags de favorito ("like") e de plano aprovado. Use os filtros favorite=true / approved=true para ver s\xF3 as favoritadas ou s\xF3 as aprovadas. Retorna id, modelo, tipo, status, data, um trecho do prompt e (quando h\xE1) a URL.',
26433
+ description: 'Lista gera\xE7\xF5es. Sem filtro, traz as suas, com os flags de favorito ("like") e de plano aprovado (filtros favorite=true / approved=true, que valem s\xF3 para as suas). Com project, traz o projeto inteiro, de toda a equipe, e user filtra uma pessoa dentro dele. scope="team" traz as gera\xE7\xF5es conclu\xEDdas da equipe toda, e user sem project traz uma pessoa da equipe: os dois s\xE3o s\xF3 para admin. Retorna id, modelo, tipo, status, data, autor, um trecho do prompt e (quando h\xE1) a URL. Fora das suas, pagine com o cursor devolvido no fim da resposta.',
26429
26434
  inputSchema: {
26430
26435
  limit: external_exports.number().int().min(1).max(100).optional().describe("Quantas trazer (padr\xE3o 20, m\xE1x 100)."),
26431
26436
  offset: external_exports.number().int().min(0).optional().describe("Deslocamento para paginar (padr\xE3o 0)."),
26432
26437
  favorite: external_exports.boolean().optional().describe('S\xF3 as favoritadas ("like"). Padr\xE3o: todas.'),
26433
- approved: external_exports.boolean().optional().describe("S\xF3 as com plano aprovado. Padr\xE3o: todas.")
26438
+ approved: external_exports.boolean().optional().describe("S\xF3 as com plano aprovado. Padr\xE3o: todas."),
26439
+ project: external_exports.string().optional().describe('C\xF3digo ou id do projeto (ex.: "EP2-26"). Lista o projeto inteiro.'),
26440
+ user: external_exports.string().optional().describe("E-mail ou id da pessoa. Sem project, s\xF3 admin."),
26441
+ scope: external_exports.enum(["team"]).optional().describe('"team": toda a equipe, com ou sem projeto. S\xF3 admin.'),
26442
+ type: external_exports.enum(["image", "video", "audio", "music", "upscale"]).optional().describe("Filtra por tipo, junto de project, user ou scope."),
26443
+ cursor: external_exports.string().optional().describe("Pr\xF3xima p\xE1gina, devolvido na resposta anterior.")
26434
26444
  }
26435
26445
  },
26436
- async ({ limit, offset, favorite, approved }) => {
26446
+ async ({ limit, offset, favorite, approved, project, user, scope, type, cursor }) => {
26437
26447
  try {
26438
- const { generations } = await client.listGenerations({ limit, offset, favorite, approved });
26448
+ const { generations, nextCursor } = await client.listGenerations({ limit, offset, favorite, approved, project, user, scope, type, cursor });
26439
26449
  if (!generations.length) {
26440
- const scope = favorite && approved ? " (favoritadas + aprovadas)" : favorite ? " favoritadas" : approved ? " aprovadas" : "";
26441
- return textResult(`Nenhuma gera\xE7\xE3o${scope} encontrada.`);
26450
+ const filterLabel = favorite && approved ? " (favoritadas + aprovadas)" : favorite ? " favoritadas" : approved ? " aprovadas" : "";
26451
+ return textResult(`Nenhuma gera\xE7\xE3o${filterLabel} encontrada.`);
26442
26452
  }
26443
26453
  const lines = generations.map((g, i) => {
26444
- const type = g.model?.startsWith("topaz/upscale") ? "upscale" : g.generation_type || "image";
26454
+ const kind = g.model?.startsWith("topaz/upscale") ? "upscale" : g.generation_type || "image";
26445
26455
  const when = g.created_at ? new Date(g.created_at).toISOString().slice(0, 10) : "\u2014";
26446
26456
  const prompt = (g.prompt || "").replace(/\s+/g, " ").slice(0, 80);
26447
26457
  const url = firstOutputUrl(g.output);
26448
26458
  const marks = [g.is_favorite ? "\u2B50" : null, g.is_approved_plan ? "\u2714\uFE0F" : null].filter(Boolean).join(" ");
26449
26459
  const marksSuffix = marks ? ` ${marks}` : "";
26450
- return `${i + 1}. ${type} \xB7 ${g.status} \xB7 ${when} \xB7 ${g.model}${marksSuffix}
26460
+ const authorName = [g.author?.first_name, g.author?.last_name].filter(Boolean).join(" ");
26461
+ const authorSuffix = authorName ? ` \xB7 ${authorName}` : "";
26462
+ return `${i + 1}. ${kind} \xB7 ${g.status} \xB7 ${when} \xB7 ${g.model}${authorSuffix}${marksSuffix}
26451
26463
  ${g.id}
26452
26464
  "${prompt}"${url ? `
26453
26465
  ${url}` : ""}`;
26454
26466
  });
26455
- return textResult(lines.join("\n\n"));
26467
+ const more = nextCursor ? `
26468
+
26469
+ Pr\xF3xima p\xE1gina: cursor "${nextCursor}"` : "";
26470
+ return textResult(lines.join("\n\n") + more);
26456
26471
  } catch (e) {
26457
26472
  return errorResult(apiErrorToUserMessage(e));
26458
26473
  }
@@ -31352,7 +31367,7 @@ N\xF3s: ${Object.entries(ids).map(([k, v]) => `${k}=${v}`).join(" \xB7 ")}` : ""
31352
31367
  import { createRequire } from "module";
31353
31368
  var require2 = createRequire(import.meta.url);
31354
31369
  function readVersion() {
31355
- if ("0.46.0") return "0.46.0";
31370
+ if ("0.47.0") return "0.47.0";
31356
31371
  try {
31357
31372
  const pkg = require2("../package.json");
31358
31373
  return pkg.version ?? "0.0.0-unknown";