gemini-design-mcp 3.5.0 → 3.5.1
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.
|
@@ -64,16 +64,22 @@ export async function generateVibes(params) {
|
|
|
64
64
|
cleanedResult = cleanedResult.trim();
|
|
65
65
|
const vibes = JSON.parse(cleanedResult);
|
|
66
66
|
// Format vibes for display
|
|
67
|
+
const scaleLabels = {
|
|
68
|
+
refined: "🔍 Refined (small, elegant)",
|
|
69
|
+
balanced: "⚖️ Balanced (standard)",
|
|
70
|
+
zoomed: "🔎 Zoomed (large elements)",
|
|
71
|
+
};
|
|
67
72
|
const formattedVibes = vibes.map((vibe, index) => {
|
|
73
|
+
const scaleDisplay = scaleLabels[vibe.scale] || vibe.scale;
|
|
68
74
|
return `${index + 1}. ${vibe.emoji} "${vibe.name}"
|
|
69
75
|
${vibe.description}
|
|
70
|
-
|
|
76
|
+
${scaleDisplay}`;
|
|
71
77
|
}).join("\n\n");
|
|
72
78
|
return {
|
|
73
79
|
content: [
|
|
74
80
|
{
|
|
75
81
|
type: "text",
|
|
76
|
-
text: `Here are 5 design vibes
|
|
82
|
+
text: `Here are 5 design vibes for your project:\n\n${formattedVibes}\n\n---\n\nAsk the user to select one vibe. Pass the selection to create_frontend via designSystem.vibe with: name, description, scale, keywords.`,
|
|
77
83
|
},
|
|
78
84
|
],
|
|
79
85
|
// Also return structured data for programmatic use
|