gemini-design-mcp 3.0.1 → 3.1.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/build/index.js +37 -27
- package/build/prompts/system.d.ts +2 -2
- package/build/prompts/system.js +55 -38
- package/build/tools/modify-frontend.d.ts +4 -4
- package/build/tools/modify-frontend.js +17 -19
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { snippetFrontendSchema, snippetFrontend } from "./tools/snippet-frontend
|
|
|
7
7
|
// Create MCP server
|
|
8
8
|
const server = new McpServer({
|
|
9
9
|
name: "gemini-design-mcp",
|
|
10
|
-
version: "3.0
|
|
10
|
+
version: "3.1.0",
|
|
11
11
|
});
|
|
12
12
|
// =============================================================================
|
|
13
13
|
// TOOL 1: CREATE_FRONTEND
|
|
@@ -99,7 +99,22 @@ Returns a COMPLETE file with:
|
|
|
99
99
|
// =============================================================================
|
|
100
100
|
// TOOL 2: MODIFY_FRONTEND
|
|
101
101
|
// =============================================================================
|
|
102
|
-
server.tool("modify_frontend", `Redesign
|
|
102
|
+
server.tool("modify_frontend", `Redesign a SINGLE UI element. Returns ONLY the changed code (find/replace format).
|
|
103
|
+
|
|
104
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
105
|
+
⚠️ CRITICAL: ONE MODIFICATION PER CALL
|
|
106
|
+
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
107
|
+
|
|
108
|
+
This tool makes exactly ONE design modification at a time.
|
|
109
|
+
|
|
110
|
+
If you need multiple design changes, call this tool MULTIPLE TIMES IN PARALLEL.
|
|
111
|
+
|
|
112
|
+
Example - User: "Redesign the sidebar and the header"
|
|
113
|
+
→ Call 1: modify_frontend (sidebar redesign)
|
|
114
|
+
→ Call 2: modify_frontend (header redesign)
|
|
115
|
+
→ Run both calls IN PARALLEL
|
|
116
|
+
|
|
117
|
+
NEVER bundle multiple modifications into one call!
|
|
103
118
|
|
|
104
119
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
105
120
|
🎯 THIS TOOL IS FOR DESIGN CHANGES, NOT CODE LOGIC
|
|
@@ -109,19 +124,16 @@ Gemini is a DESIGN specialist. Use this tool when the visual design needs work.
|
|
|
109
124
|
|
|
110
125
|
✅ USE THIS TOOL FOR (design changes):
|
|
111
126
|
• "The sidebar looks ugly, redesign it" → Full visual redesign
|
|
112
|
-
• "Make this
|
|
113
|
-
• "This
|
|
114
|
-
• "Redesign the header with
|
|
115
|
-
• "The cards look boring, make them more visually appealing" → Design improvement
|
|
127
|
+
• "Make this button look more premium" → Design quality upgrade
|
|
128
|
+
• "This card looks dated, refresh it" → Visual refresh
|
|
129
|
+
• "Redesign the header with better layout" → Layout + design
|
|
116
130
|
|
|
117
131
|
❌ DO NOT USE THIS TOOL FOR (you can do these yourself):
|
|
118
|
-
• "Make the sidebar collapsible" → Logic change, just add useState
|
|
119
|
-
• "Change the background to blue" → Just change
|
|
132
|
+
• "Make the sidebar collapsible" → Logic change, just add useState
|
|
133
|
+
• "Change the background to blue" → Just change the class
|
|
120
134
|
• "Add a loading spinner" → Simple code addition
|
|
121
|
-
• "Add onClick handler" → Just code, no design
|
|
122
|
-
• "
|
|
123
|
-
• "Add dark mode toggle" → Logic, not design
|
|
124
|
-
• "Make it responsive" → You can add breakpoints yourself
|
|
135
|
+
• "Add onClick handler" → Just code, no design
|
|
136
|
+
• "Center this div" → Just flex + items-center
|
|
125
137
|
|
|
126
138
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
127
139
|
💡 DECISION GUIDE: Should I use this tool?
|
|
@@ -138,27 +150,25 @@ Ask yourself: "Does this require VISUAL DESIGN expertise?"
|
|
|
138
150
|
| "Change background color" | ❌ NO | One class change |
|
|
139
151
|
| "Add a button" | ❌ NO | Simple code addition |
|
|
140
152
|
| "Add hover effects" | ❌ NO | Just add hover: classes |
|
|
141
|
-
| "Center this div" | ❌ NO | Just flex + items-center |
|
|
142
153
|
|
|
143
154
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
144
|
-
|
|
155
|
+
📤 OUTPUT FORMAT
|
|
145
156
|
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
|
|
146
157
|
|
|
147
|
-
|
|
148
|
-
Pass the complete file content as existingCode parameter.
|
|
158
|
+
Returns a find/replace block (NOT the full file):
|
|
149
159
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
Bad: "Fix the sidebar"
|
|
160
|
+
// NEW IMPORTS NEEDED: (if any)
|
|
161
|
+
import { X } from "y";
|
|
153
162
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
163
|
+
// FIND THIS CODE:
|
|
164
|
+
<exact existing code to find>
|
|
165
|
+
|
|
166
|
+
// REPLACE WITH:
|
|
167
|
+
<new redesigned code>
|
|
157
168
|
|
|
158
|
-
|
|
159
|
-
-
|
|
160
|
-
-
|
|
161
|
-
- All functionality preserved`, modifyFrontendSchema, modifyFrontend);
|
|
169
|
+
You (the agent) are responsible for:
|
|
170
|
+
- Applying the find/replace to the file
|
|
171
|
+
- Merging any new imports`, modifyFrontendSchema, modifyFrontend);
|
|
162
172
|
// =============================================================================
|
|
163
173
|
// TOOL 3: SNIPPET_FRONTEND
|
|
164
174
|
// =============================================================================
|
|
@@ -237,7 +247,7 @@ You are responsible for:
|
|
|
237
247
|
async function main() {
|
|
238
248
|
const transport = new StdioServerTransport();
|
|
239
249
|
await server.connect(transport);
|
|
240
|
-
console.error("gemini-design-mcp v3.0
|
|
250
|
+
console.error("gemini-design-mcp v3.1.0 running on stdio");
|
|
241
251
|
}
|
|
242
252
|
main().catch((error) => {
|
|
243
253
|
console.error("Fatal error:", error);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const CREATE_FRONTEND_PROMPT = "You are an elite UI/UX Designer creating production-ready, visually stunning interfaces.\n\nYOUR TASK: Create a COMPLETE, NEW frontend file.\n\nDESIGN EXCELLENCE REQUIREMENTS:\n\n1. **MAXIMUM DETAIL AND DENSITY**\n - The interface MUST be densely populated and feature-rich\n - NEVER produce simple wireframes, empty containers, or placeholder content\n - Fill the space with intricate details, realistic content, background elements, and meaningful UI components\n - Every section should feel like a fully finished, polished product\n\n2. **PREMIUM VISUAL STYLING**\n - Apply high-end design principles throughout\n - Use sophisticated styling: nuanced shadows, subtle gradients, refined borders, micro-textures\n - Add depth and dimension with layered elements\n - The aesthetic MUST feel modern, premium, and visually captivating\n - Use professional color palettes with proper contrast and hierarchy\n\n3. **COMPREHENSIVE INTERACTIVITY**\n - Design every element to look tangible and interactive\n - Include visual states: hover effects, focus rings, active states, transitions\n - Buttons should look clickable, inputs should look fillable\n - The interface should feel alive, not static\n\n4. **LAYOUT EXCELLENCE**\n - Use proper visual hierarchy with clear focal points\n - Apply consistent spacing rhythm throughout\n - Ensure the layout breathes - balance density with whitespace\n - Full viewport height designs (min-height: 100vh on body)\n - No awkward gaps or orphaned elements\n\n5. **RESPONSIVE BY DEFAULT**\n - Designs MUST work flawlessly on mobile and desktop\n - Touch-friendly sizing for interactive elements on mobile\n - Stackable grids that adapt naturally to screen size\n\n6. **REALISTIC CONTENT**\n - Use believable placeholder content (real-looking names, dates, numbers)\n - Include appropriate icons, avatars, and imagery\n - Data visualizations should have realistic data points\n - Text should be contextually appropriate, not \"Lorem ipsum\"\n\nOUTPUT REQUIREMENTS:\n- Return a COMPLETE file with all necessary imports at the top\n- Include proper exports (default or named as appropriate)\n- The code must be ready to use as-is, no modifications needed\n- Follow the tech stack conventions exactly\n- Return ONLY the code, no explanations or markdown fences";
|
|
2
|
-
export declare const MODIFY_FRONTEND_PROMPT = "You are an elite UI/UX Designer
|
|
3
|
-
export declare const SNIPPET_FRONTEND_PROMPT = "You are an elite UI/UX Designer generating a code snippet.\n\nYOUR TASK: Generate a focused code snippet that will be INSERTED into an existing file.\n\nSNIPPET PRINCIPLES:\n\n1. **CONTEXTUAL AWARENESS**\n - The snippet will be inserted into an existing codebase\n - Match the style and patterns described in the context\n - Use consistent naming conventions with the project\n\n2. **SELF-CONTAINED BUT INTEGRABLE**\n - The snippet should work when inserted\n - Include only the imports that are NEW (the agent will merge them)\n - Don't include file-level exports unless specifically asked\n\n3. **PREMIUM QUALITY**\n - Even snippets must have premium visual styling\n - Include hover states, transitions, proper spacing\n - Use realistic placeholder content, not Lorem ipsum\n\n4. **CLEAN BOUNDARIES**\n - Clear start and end of the snippet\n - Proper indentation (assume standard 2-space indent)\n - No trailing commas or syntax that would break insertion\n\n5. **FOCUSED SCOPE**\n - Generate exactly what was asked, nothing more\n - Don't add \"nice to have\" features unless requested\n - Keep the snippet as lean as possible while meeting requirements\n\nOUTPUT
|
|
2
|
+
export declare const MODIFY_FRONTEND_PROMPT = "You are an elite UI/UX Designer making a SINGLE, focused design modification.\n\nYOUR TASK: Apply ONE design modification and return ONLY the changed code.\n\nCRITICAL RULES:\n\n1. **SINGLE MODIFICATION ONLY**\n - You are making exactly ONE design change\n - Do NOT touch or return any code unrelated to this specific change\n - Keep the modification as focused and surgical as possible\n\n2. **PRESERVE EXISTING DESIGN LANGUAGE**\n - Match the existing color palette, typography, and spacing\n - Keep visual consistency with the rest of the file\n - Don't introduce jarring style changes unless explicitly asked\n\n3. **PREMIUM QUALITY**\n - The modified element must have the same polish as the original\n - Include proper hover states, transitions, and visual feedback\n - Ensure the modification enhances the overall design\n\nOUTPUT FORMAT - STRICTLY FOLLOW THIS:\n\n```\n// FIND THIS CODE:\n<exact code to find and replace>\n\n// REPLACE WITH:\n<new redesigned code>\n```\n\nIf new imports are needed, add them at the top:\n```\n// NEW IMPORTS NEEDED:\nimport { X } from \"y\";\n\n// FIND THIS CODE:\n...\n\n// REPLACE WITH:\n...\n```\n\nIMPORTANT:\n- The \"FIND THIS CODE\" must be an EXACT match of existing code (copy-paste precision)\n- Include enough context in \"FIND THIS CODE\" to make it unique in the file\n- Return ONLY what needs to change, nothing else\n- No explanations, no full file, just the find/replace block";
|
|
3
|
+
export declare const SNIPPET_FRONTEND_PROMPT = "You are an elite UI/UX Designer generating a code snippet to INSERT.\n\nYOUR TASK: Generate a focused code snippet that will be INSERTED into an existing file.\n\nSNIPPET PRINCIPLES:\n\n1. **CONTEXTUAL AWARENESS**\n - The snippet will be inserted into an existing codebase\n - Match the style and patterns described in the context\n - Use consistent naming conventions with the project\n\n2. **SELF-CONTAINED BUT INTEGRABLE**\n - The snippet should work when inserted\n - Include only the imports that are NEW (the agent will merge them)\n - Don't include file-level exports unless specifically asked\n\n3. **PREMIUM QUALITY**\n - Even snippets must have premium visual styling\n - Include hover states, transitions, proper spacing\n - Use realistic placeholder content, not Lorem ipsum\n\n4. **CLEAN BOUNDARIES**\n - Clear start and end of the snippet\n - Proper indentation (assume standard 2-space indent)\n - No trailing commas or syntax that would break insertion\n\n5. **FOCUSED SCOPE**\n - Generate exactly what was asked, nothing more\n - Don't add \"nice to have\" features unless requested\n - Keep the snippet as lean as possible while meeting requirements\n\nOUTPUT FORMAT:\n\nIf new imports are needed:\n```\n// NEW IMPORTS NEEDED:\nimport { X } from \"y\";\n\n// SNIPPET:\n<your code here>\n```\n\nIf no new imports needed:\n```\n// SNIPPET:\n<your code here>\n```\n\nReturn ONLY the code, no explanations.";
|
package/build/prompts/system.js
CHANGED
|
@@ -53,50 +53,62 @@ OUTPUT REQUIREMENTS:
|
|
|
53
53
|
- Return ONLY the code, no explanations or markdown fences`;
|
|
54
54
|
// =============================================================================
|
|
55
55
|
// MODIFY_FRONTEND PROMPT
|
|
56
|
-
// Used for
|
|
56
|
+
// Used for making a SINGLE design modification to existing code
|
|
57
|
+
// Returns ONLY the modified portion, not the full file
|
|
57
58
|
// =============================================================================
|
|
58
|
-
export const MODIFY_FRONTEND_PROMPT = `You are an elite UI/UX Designer
|
|
59
|
+
export const MODIFY_FRONTEND_PROMPT = `You are an elite UI/UX Designer making a SINGLE, focused design modification.
|
|
59
60
|
|
|
60
|
-
YOUR TASK:
|
|
61
|
+
YOUR TASK: Apply ONE design modification and return ONLY the changed code.
|
|
61
62
|
|
|
62
|
-
|
|
63
|
+
CRITICAL RULES:
|
|
63
64
|
|
|
64
|
-
1. **
|
|
65
|
-
-
|
|
66
|
-
-
|
|
65
|
+
1. **SINGLE MODIFICATION ONLY**
|
|
66
|
+
- You are making exactly ONE design change
|
|
67
|
+
- Do NOT touch or return any code unrelated to this specific change
|
|
68
|
+
- Keep the modification as focused and surgical as possible
|
|
69
|
+
|
|
70
|
+
2. **PRESERVE EXISTING DESIGN LANGUAGE**
|
|
71
|
+
- Match the existing color palette, typography, and spacing
|
|
72
|
+
- Keep visual consistency with the rest of the file
|
|
67
73
|
- Don't introduce jarring style changes unless explicitly asked
|
|
68
74
|
|
|
69
|
-
|
|
70
|
-
-
|
|
71
|
-
-
|
|
72
|
-
-
|
|
75
|
+
3. **PREMIUM QUALITY**
|
|
76
|
+
- The modified element must have the same polish as the original
|
|
77
|
+
- Include proper hover states, transitions, and visual feedback
|
|
78
|
+
- Ensure the modification enhances the overall design
|
|
73
79
|
|
|
74
|
-
|
|
75
|
-
- Only change what needs to be changed
|
|
76
|
-
- Don't refactor unrelated parts of the code
|
|
77
|
-
- Preserve imports that are still needed, add new ones as required
|
|
80
|
+
OUTPUT FORMAT - STRICTLY FOLLOW THIS:
|
|
78
81
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
- Ensure new interactive elements have proper states (hover, focus, etc.)
|
|
82
|
+
\`\`\`
|
|
83
|
+
// FIND THIS CODE:
|
|
84
|
+
<exact code to find and replace>
|
|
83
85
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
- Ensure the file remains properly typed (if TypeScript)
|
|
86
|
+
// REPLACE WITH:
|
|
87
|
+
<new redesigned code>
|
|
88
|
+
\`\`\`
|
|
88
89
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
If new imports are needed, add them at the top:
|
|
91
|
+
\`\`\`
|
|
92
|
+
// NEW IMPORTS NEEDED:
|
|
93
|
+
import { X } from "y";
|
|
94
|
+
|
|
95
|
+
// FIND THIS CODE:
|
|
96
|
+
...
|
|
97
|
+
|
|
98
|
+
// REPLACE WITH:
|
|
99
|
+
...
|
|
100
|
+
\`\`\`
|
|
101
|
+
|
|
102
|
+
IMPORTANT:
|
|
103
|
+
- The "FIND THIS CODE" must be an EXACT match of existing code (copy-paste precision)
|
|
104
|
+
- Include enough context in "FIND THIS CODE" to make it unique in the file
|
|
105
|
+
- Return ONLY what needs to change, nothing else
|
|
106
|
+
- No explanations, no full file, just the find/replace block`;
|
|
95
107
|
// =============================================================================
|
|
96
108
|
// SNIPPET_FRONTEND PROMPT
|
|
97
109
|
// Used for generating code snippets to INSERT into existing files
|
|
98
110
|
// =============================================================================
|
|
99
|
-
export const SNIPPET_FRONTEND_PROMPT = `You are an elite UI/UX Designer generating a code snippet.
|
|
111
|
+
export const SNIPPET_FRONTEND_PROMPT = `You are an elite UI/UX Designer generating a code snippet to INSERT.
|
|
100
112
|
|
|
101
113
|
YOUR TASK: Generate a focused code snippet that will be INSERTED into an existing file.
|
|
102
114
|
|
|
@@ -127,16 +139,21 @@ SNIPPET PRINCIPLES:
|
|
|
127
139
|
- Don't add "nice to have" features unless requested
|
|
128
140
|
- Keep the snippet as lean as possible while meeting requirements
|
|
129
141
|
|
|
130
|
-
OUTPUT
|
|
131
|
-
- Return ONLY the code snippet
|
|
132
|
-
- If new imports are needed, list them at the very top, clearly separated
|
|
133
|
-
- The snippet should be ready to paste/insert
|
|
134
|
-
- Match the tech stack and patterns from context
|
|
135
|
-
- Return ONLY the code, no explanations or markdown fences
|
|
142
|
+
OUTPUT FORMAT:
|
|
136
143
|
|
|
137
|
-
|
|
144
|
+
If new imports are needed:
|
|
145
|
+
\`\`\`
|
|
138
146
|
// NEW IMPORTS NEEDED:
|
|
139
147
|
import { X } from "y";
|
|
140
148
|
|
|
141
149
|
// SNIPPET:
|
|
142
|
-
<your code here
|
|
150
|
+
<your code here>
|
|
151
|
+
\`\`\`
|
|
152
|
+
|
|
153
|
+
If no new imports needed:
|
|
154
|
+
\`\`\`
|
|
155
|
+
// SNIPPET:
|
|
156
|
+
<your code here>
|
|
157
|
+
\`\`\`
|
|
158
|
+
|
|
159
|
+
Return ONLY the code, no explanations.`;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
export declare const modifyFrontendSchema: {
|
|
3
|
-
|
|
3
|
+
modification: z.ZodString;
|
|
4
|
+
targetCode: z.ZodString;
|
|
4
5
|
filePath: z.ZodString;
|
|
5
|
-
existingCode: z.ZodString;
|
|
6
6
|
context: z.ZodOptional<z.ZodString>;
|
|
7
7
|
};
|
|
8
8
|
export declare function modifyFrontend(params: {
|
|
9
|
-
|
|
9
|
+
modification: string;
|
|
10
|
+
targetCode: string;
|
|
10
11
|
filePath: string;
|
|
11
|
-
existingCode: string;
|
|
12
12
|
context?: string;
|
|
13
13
|
}): Promise<{
|
|
14
14
|
content: {
|
|
@@ -2,44 +2,42 @@ import { z } from "zod";
|
|
|
2
2
|
import { generateWithGemini } from "../lib/gemini.js";
|
|
3
3
|
import { MODIFY_FRONTEND_PROMPT } from "../prompts/system.js";
|
|
4
4
|
export const modifyFrontendSchema = {
|
|
5
|
-
|
|
5
|
+
modification: z.string().describe("The SINGLE design modification to make. Be specific. " +
|
|
6
6
|
"Examples: " +
|
|
7
|
-
"'
|
|
8
|
-
"'
|
|
9
|
-
"'
|
|
10
|
-
|
|
7
|
+
"'Redesign this button to look more premium with gradient and shadow', " +
|
|
8
|
+
"'Redesign the card header with better typography and spacing', " +
|
|
9
|
+
"'Make this sidebar look more modern with glassmorphism effect'"),
|
|
10
|
+
targetCode: z.string().describe("The specific code section to modify (NOT the full file). " +
|
|
11
|
+
"Pass only the relevant component/element that needs redesigning. " +
|
|
12
|
+
"This helps Gemini focus on exactly what to change."),
|
|
11
13
|
filePath: z.string().describe("The path of the file being modified. " +
|
|
12
14
|
"Example: 'src/components/Sidebar.tsx'"),
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
"Gemini will return the complete modified file."),
|
|
16
|
-
context: z.string().optional().describe("Additional project context if needed for the modification. " +
|
|
17
|
-
"Pass related files if the modification needs to match patterns from elsewhere. " +
|
|
18
|
-
"Optional - only include if relevant to the modification."),
|
|
15
|
+
context: z.string().optional().describe("Additional context about the file's design system. " +
|
|
16
|
+
"Example: 'Uses Tailwind, dark theme with zinc colors, rounded-xl borders'"),
|
|
19
17
|
};
|
|
20
18
|
export async function modifyFrontend(params) {
|
|
21
|
-
const {
|
|
19
|
+
const { modification, targetCode, filePath, context } = params;
|
|
22
20
|
// Build context instructions
|
|
23
21
|
let contextInstructions = '';
|
|
24
22
|
if (context) {
|
|
25
23
|
contextInstructions = `
|
|
26
|
-
|
|
24
|
+
DESIGN CONTEXT:
|
|
27
25
|
${context}
|
|
28
26
|
`;
|
|
29
27
|
}
|
|
30
28
|
const systemPrompt = `${MODIFY_FRONTEND_PROMPT}
|
|
31
29
|
${contextInstructions}
|
|
32
|
-
FILE
|
|
30
|
+
FILE: ${filePath}
|
|
33
31
|
|
|
34
|
-
|
|
32
|
+
CODE TO MODIFY:
|
|
35
33
|
\`\`\`
|
|
36
|
-
${
|
|
34
|
+
${targetCode}
|
|
37
35
|
\`\`\`
|
|
38
36
|
|
|
39
|
-
MODIFICATION REQUESTED: ${
|
|
37
|
+
MODIFICATION REQUESTED: ${modification}
|
|
40
38
|
|
|
41
|
-
Remember: Return the
|
|
42
|
-
const result = await generateWithGemini(systemPrompt,
|
|
39
|
+
Remember: Return ONLY the find/replace block. ONE modification, surgical precision.`.trim();
|
|
40
|
+
const result = await generateWithGemini(systemPrompt, modification);
|
|
43
41
|
return {
|
|
44
42
|
content: [{ type: "text", text: result }],
|
|
45
43
|
};
|