@fre4x/gemini 1.0.29 → 1.0.31

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 +8 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -55592,6 +55592,7 @@ Mock response \u2014 no API call made.` }] };
55592
55592
  if (IS_MOCK) {
55593
55593
  const mockBase64 = "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg==";
55594
55594
  const content2 = [
55595
+ { type: "text", text: `\u2705 Image generated successfully (1 image, prompt: "${prompt}").` },
55595
55596
  { type: "image", data: mockBase64, mimeType: "image/png" }
55596
55597
  ];
55597
55598
  if (output_dir) {
@@ -55634,11 +55635,13 @@ Check Imagen access at https://ai.google.dev/` }],
55634
55635
  savedPaths.push(fpath);
55635
55636
  }
55636
55637
  }
55637
- const content = [...images];
55638
- if (savedPaths.length > 0) {
55639
- content.push({ type: "text", text: `Saved to:
55640
- ${savedPaths.join("\n")}` });
55641
- }
55638
+ const content = [
55639
+ // Text confirmation first — so AI knows image was generated even if client can't render images
55640
+ { type: "text", text: `\u2705 Image generated successfully (${images.length} image${images.length > 1 ? "s" : ""}, prompt: "${prompt}").${savedPaths.length > 0 ? `
55641
+ Saved to:
55642
+ ${savedPaths.join("\n")}` : ""}` },
55643
+ ...images
55644
+ ];
55642
55645
  return { content };
55643
55646
  }
55644
55647
  if (name === "generate_video") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fre4x/gemini",
3
- "version": "1.0.29",
3
+ "version": "1.0.31",
4
4
  "description": "A Gemini MCP server providing text completion, multimodal analysis, and image/video generation.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",