sonance-brand-mcp 1.3.102 → 1.3.103

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.
@@ -1519,18 +1519,23 @@ function buildPhase2DesignPrompt(problems: DesignProblem[]): string {
1519
1519
  return ''; // No problems identified, skip design protocol
1520
1520
  }
1521
1521
 
1522
- // Create a simple, readable list of problems (no JSON complexity)
1523
- const problemsList = problems.map(p => `• ${p.description}`).join('\n');
1522
+ // Create a structured list with code hints to guide the LLM
1523
+ const problemsList = problems.map((p, i) => {
1524
+ const hint = p.codeHint ? `\n → Look for: ${p.codeHint}` : '';
1525
+ return `${i + 1}. [${p.severity.toUpperCase()}] ${p.description}${hint}`;
1526
+ }).join('\n\n');
1524
1527
 
1525
1528
  return `
1526
1529
  ═══════════════════════════════════════════════════════════════════════════════
1527
- DESIGN ISSUES TO FIX
1530
+ DESIGN ISSUES TO FIX (${problems.length} problems identified)
1528
1531
  ═══════════════════════════════════════════════════════════════════════════════
1529
1532
 
1530
- These visual issues were identified:
1531
1533
  ${problemsList}
1532
1534
 
1533
- Fix these issues by modifying the code below.
1535
+ YOUR TASK: Generate AT LEAST ONE PATCH for EACH problem listed above.
1536
+ Expected minimum patches: ${problems.length}
1537
+
1538
+ Use the "Look for" hints to find the relevant code in the file.
1534
1539
 
1535
1540
  ⚠️ CRITICAL - EXACT CODE MATCHING:
1536
1541
  Your "search" string MUST be copied CHARACTER-FOR-CHARACTER from the file.
@@ -1550,6 +1555,7 @@ DO:
1550
1555
  - Copy the exact text from the numbered lines
1551
1556
  - Make small, targeted changes in the "replace" field
1552
1557
  - Keep patches focused on one change each
1558
+ - Generate one patch per problem minimum
1553
1559
  `;
1554
1560
  }
1555
1561
 
@@ -1515,18 +1515,23 @@ function buildPhase2DesignPrompt(problems: DesignProblem[]): string {
1515
1515
  return ''; // No problems identified, skip design protocol
1516
1516
  }
1517
1517
 
1518
- // Create a simple, readable list of problems (no JSON complexity)
1519
- const problemsList = problems.map(p => `• ${p.description}`).join('\n');
1518
+ // Create a structured list with code hints to guide the LLM
1519
+ const problemsList = problems.map((p, i) => {
1520
+ const hint = p.codeHint ? `\n → Look for: ${p.codeHint}` : '';
1521
+ return `${i + 1}. [${p.severity.toUpperCase()}] ${p.description}${hint}`;
1522
+ }).join('\n\n');
1520
1523
 
1521
1524
  return `
1522
1525
  ═══════════════════════════════════════════════════════════════════════════════
1523
- DESIGN ISSUES TO FIX
1526
+ DESIGN ISSUES TO FIX (${problems.length} problems identified)
1524
1527
  ═══════════════════════════════════════════════════════════════════════════════
1525
1528
 
1526
- These visual issues were identified:
1527
1529
  ${problemsList}
1528
1530
 
1529
- Fix these issues by modifying the code below.
1531
+ YOUR TASK: Generate AT LEAST ONE PATCH for EACH problem listed above.
1532
+ Expected minimum patches: ${problems.length}
1533
+
1534
+ Use the "Look for" hints to find the relevant code in the file.
1530
1535
 
1531
1536
  ⚠️ CRITICAL - EXACT CODE MATCHING:
1532
1537
  Your "search" string MUST be copied CHARACTER-FOR-CHARACTER from the file.
@@ -1546,6 +1551,7 @@ DO:
1546
1551
  - Copy the exact text from the numbered lines
1547
1552
  - Make small, targeted changes in the "replace" field
1548
1553
  - Keep patches focused on one change each
1554
+ - Generate one patch per problem minimum
1549
1555
  `;
1550
1556
  }
1551
1557
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonance-brand-mcp",
3
- "version": "1.3.102",
3
+ "version": "1.3.103",
4
4
  "description": "MCP Server for Sonance Brand Guidelines and Component Library - gives Claude instant access to brand colors, typography, and UI components.",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",