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.
@@ -25299,7 +25299,12 @@ var BeplusClient = class {
25299
25299
  offset: query.offset,
25300
25300
  // Only send when true — the backend treats truthy as "constrain".
25301
25301
  favorite: query.favorite ? "true" : void 0,
25302
- approved: query.approved ? "true" : void 0
25302
+ approved: query.approved ? "true" : void 0,
25303
+ project: query.project,
25304
+ user: query.user,
25305
+ scope: query.scope,
25306
+ type: query.type,
25307
+ cursor: query.cursor
25303
25308
  }
25304
25309
  });
25305
25310
  }
@@ -27322,34 +27327,44 @@ ${list}${flagsLine(status)}${draftHint}` }, ...blocks] };
27322
27327
  "list_generations",
27323
27328
  {
27324
27329
  title: "Listar gera\xE7\xF5es",
27325
- 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.',
27330
+ 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.',
27326
27331
  inputSchema: {
27327
27332
  limit: external_exports.number().int().min(1).max(100).optional().describe("Quantas trazer (padr\xE3o 20, m\xE1x 100)."),
27328
27333
  offset: external_exports.number().int().min(0).optional().describe("Deslocamento para paginar (padr\xE3o 0)."),
27329
27334
  favorite: external_exports.boolean().optional().describe('S\xF3 as favoritadas ("like"). Padr\xE3o: todas.'),
27330
- approved: external_exports.boolean().optional().describe("S\xF3 as com plano aprovado. Padr\xE3o: todas.")
27335
+ approved: external_exports.boolean().optional().describe("S\xF3 as com plano aprovado. Padr\xE3o: todas."),
27336
+ project: external_exports.string().optional().describe('C\xF3digo ou id do projeto (ex.: "EP2-26"). Lista o projeto inteiro.'),
27337
+ user: external_exports.string().optional().describe("E-mail ou id da pessoa. Sem project, s\xF3 admin."),
27338
+ scope: external_exports.enum(["team"]).optional().describe('"team": toda a equipe, com ou sem projeto. S\xF3 admin.'),
27339
+ type: external_exports.enum(["image", "video", "audio", "music", "upscale"]).optional().describe("Filtra por tipo, junto de project, user ou scope."),
27340
+ cursor: external_exports.string().optional().describe("Pr\xF3xima p\xE1gina, devolvido na resposta anterior.")
27331
27341
  }
27332
27342
  },
27333
- async ({ limit, offset, favorite, approved }) => {
27343
+ async ({ limit, offset, favorite, approved, project, user, scope, type, cursor }) => {
27334
27344
  try {
27335
- const { generations } = await client.listGenerations({ limit, offset, favorite, approved });
27345
+ const { generations, nextCursor } = await client.listGenerations({ limit, offset, favorite, approved, project, user, scope, type, cursor });
27336
27346
  if (!generations.length) {
27337
- const scope = favorite && approved ? " (favoritadas + aprovadas)" : favorite ? " favoritadas" : approved ? " aprovadas" : "";
27338
- return textResult(`Nenhuma gera\xE7\xE3o${scope} encontrada.`);
27347
+ const filterLabel = favorite && approved ? " (favoritadas + aprovadas)" : favorite ? " favoritadas" : approved ? " aprovadas" : "";
27348
+ return textResult(`Nenhuma gera\xE7\xE3o${filterLabel} encontrada.`);
27339
27349
  }
27340
27350
  const lines = generations.map((g, i) => {
27341
- const type = g.model?.startsWith("topaz/upscale") ? "upscale" : g.generation_type || "image";
27351
+ const kind = g.model?.startsWith("topaz/upscale") ? "upscale" : g.generation_type || "image";
27342
27352
  const when = g.created_at ? new Date(g.created_at).toISOString().slice(0, 10) : "\u2014";
27343
27353
  const prompt = (g.prompt || "").replace(/\s+/g, " ").slice(0, 80);
27344
27354
  const url = firstOutputUrl(g.output);
27345
27355
  const marks = [g.is_favorite ? "\u2B50" : null, g.is_approved_plan ? "\u2714\uFE0F" : null].filter(Boolean).join(" ");
27346
27356
  const marksSuffix = marks ? ` ${marks}` : "";
27347
- return `${i + 1}. ${type} \xB7 ${g.status} \xB7 ${when} \xB7 ${g.model}${marksSuffix}
27357
+ const authorName = [g.author?.first_name, g.author?.last_name].filter(Boolean).join(" ");
27358
+ const authorSuffix = authorName ? ` \xB7 ${authorName}` : "";
27359
+ return `${i + 1}. ${kind} \xB7 ${g.status} \xB7 ${when} \xB7 ${g.model}${authorSuffix}${marksSuffix}
27348
27360
  ${g.id}
27349
27361
  "${prompt}"${url ? `
27350
27362
  ${url}` : ""}`;
27351
27363
  });
27352
- return textResult(lines.join("\n\n"));
27364
+ const more = nextCursor ? `
27365
+
27366
+ Pr\xF3xima p\xE1gina: cursor "${nextCursor}"` : "";
27367
+ return textResult(lines.join("\n\n") + more);
27353
27368
  } catch (e) {
27354
27369
  return errorResult(apiErrorToUserMessage(e));
27355
27370
  }
@@ -32249,7 +32264,7 @@ N\xF3s: ${Object.entries(ids).map(([k, v]) => `${k}=${v}`).join(" \xB7 ")}` : ""
32249
32264
  import { createRequire } from "module";
32250
32265
  var require2 = createRequire(import.meta.url);
32251
32266
  function readVersion() {
32252
- if ("0.46.0") return "0.46.0";
32267
+ if ("0.47.0") return "0.47.0";
32253
32268
  try {
32254
32269
  const pkg = require2("../package.json");
32255
32270
  return pkg.version ?? "0.0.0-unknown";