gemini-design-mcp 3.12.0 → 3.12.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.
@@ -373,7 +373,24 @@ IMPORTANT:
373
373
  // Injected when generateDesignSystem === true in create_frontend
374
374
  // =============================================================================
375
375
  export const DESIGN_SYSTEM_GENERATION_PROMPT = `
376
- ## GÉNÉRATION DU DESIGN SYSTEM (MODE ACTIVÉ)
376
+ #########################################
377
+ # MODE DESIGN SYSTEM ACTIVÉ
378
+ #########################################
379
+
380
+ CRITICAL: Tu DOIS retourner ta réponse dans ce format EXACT avec les markers HTML.
381
+ NE RETOURNE JAMAIS juste du code. Tu DOIS inclure les DEUX sections.
382
+
383
+ ## FORMAT OBLIGATOIRE (à respecter à la lettre)
384
+
385
+ <!-- CODE_START -->
386
+ (le code complet de la page ici)
387
+ <!-- CODE_END -->
388
+
389
+ <!-- DESIGN_SYSTEM_START -->
390
+ (le design system complet ici)
391
+ <!-- DESIGN_SYSTEM_END -->
392
+
393
+ #########################################
377
394
 
378
395
  Tu dois générer un design system ULTRA COMPLET en plus du code.
379
396
 
@@ -382,13 +399,8 @@ Imagine que ce projet aura : dashboard, landing page, settings, formulaires,
382
399
  modals, tables, cards, sidebars, etc. Génère TOUS les tokens et composants
383
400
  qui pourraient être nécessaires.
384
401
 
385
- ### FORMAT DE SORTIE
386
-
387
- <!-- CODE_START -->
388
- [Le code complet de la page ici]
389
- <!-- CODE_END -->
402
+ ### TEMPLATE DU DESIGN SYSTEM (entre les markers DESIGN_SYSTEM_START/END)
390
403
 
391
- <!-- DESIGN_SYSTEM_START -->
392
404
  # Design System - [Nom du Projet]
393
405
 
394
406
  ## Colors
@@ -66,19 +66,29 @@ IMPORTANT: Analyze the existing code carefully and match:
66
66
  - Import patterns and file structure
67
67
  `;
68
68
  }
69
- // Add design system generation instructions if requested
70
- let designSystemGenerationInstructions = '';
69
+ // Build the system prompt - design system generation instructions go FIRST if enabled
70
+ let systemPrompt;
71
71
  if (generateDesignSystem) {
72
- designSystemGenerationInstructions = DESIGN_SYSTEM_GENERATION_PROMPT;
73
- }
74
- const systemPrompt = `${CREATE_FRONTEND_PROMPT}
72
+ systemPrompt = `${DESIGN_SYSTEM_GENERATION_PROMPT}
73
+
74
+ ---
75
+
76
+ ${CREATE_FRONTEND_PROMPT}
75
77
  ${designSystemInstructions}
76
78
  ${contextInstructions}
77
- ${designSystemGenerationInstructions}
78
79
  TECH STACK: ${techStack}
79
80
  FILE PATH: ${filePath}
80
81
 
81
- Remember: Return a COMPLETE file ready to save at ${filePath}${generateDesignSystem ? '. IMPORTANT: Follow the exact output format with <!-- CODE_START/END --> and <!-- DESIGN_SYSTEM_START/END --> markers.' : ''}`.trim();
82
+ RAPPEL CRITIQUE: Tu DOIS utiliser le format avec les markers <!-- CODE_START/END --> et <!-- DESIGN_SYSTEM_START/END -->. Ne retourne JAMAIS juste le code.`.trim();
83
+ } else {
84
+ systemPrompt = `${CREATE_FRONTEND_PROMPT}
85
+ ${designSystemInstructions}
86
+ ${contextInstructions}
87
+ TECH STACK: ${techStack}
88
+ FILE PATH: ${filePath}
89
+
90
+ Remember: Return a COMPLETE file ready to save at ${filePath}`.trim();
91
+ }
82
92
  const rawResult = await generateWithGemini(systemPrompt, request, undefined, "high", "create_frontend");
83
93
  // Handle design system generation mode
84
94
  if (generateDesignSystem) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemini-design-mcp",
3
- "version": "3.12.0",
3
+ "version": "3.12.1",
4
4
  "description": "MCP server that uses Gemini 3 Pro for frontend/design code generation",
5
5
  "main": "build/index.js",
6
6
  "bin": {