|
149 | 149 | // Download the bundled Python script (combine.py) and notify user to update paths |
150 | 150 | const downloadPythonScript = async () => { |
151 | 151 | try { |
152 | | - const res = await fetch('combine.py'); |
| 152 | + const res = await fetch('combine.py'); // Fetch the Python script |
153 | 153 | if (!res.ok) throw new Error('Failed to fetch combine.py'); |
154 | 154 | const txt = await res.text(); |
155 | 155 | const blob = new Blob([txt], { type: 'text/x-python' }); |
@@ -1564,18 +1564,10 @@ Your goal: deliver precise, production-grade patches with the smallest necessary |
1564 | 1564 |
|
1565 | 1565 | // Use unified human-readable header for Gemini output |
1566 | 1566 | parts.push('## 🎯 SYSTEM PROMPT\n'); |
1567 | | - parts.push('1. **Complete Context**: This is the FULL and AUTHORITATIVE codebase\n'); |
1568 | | - parts.push('2. **Analyze Thoroughly**: Understand architecture, patterns, and dependencies\n'); |
1569 | | - parts.push('3. **Maintain Consistency**: Follow existing code style and conventions\n'); |
1570 | | - parts.push('4. **Reference Precisely**: Always cite specific file paths\n'); |
1571 | | - parts.push('5. **Think Holistically**: Consider the entire project ecosystem\n'); |
1572 | | - parts.push('6. **Respect Patterns**: Honor established design patterns and practices\n\n'); |
1573 | 1567 |
|
1574 | | - parts.push('**📝 Data Format:**\n\n'); |
1575 | | - parts.push('- Each file includes full path and language identifier\n'); |
1576 | | - parts.push('- Project structure provided for navigation\n'); |
1577 | | - parts.push('- All content is unmodified source code\n'); |
1578 | | - parts.push('- Syntax highlighting applied per language\n\n'); |
| 1568 | + parts.push('```\n'); |
| 1569 | + parts.push(CUSTOM_SYSTEM_PROMPT + '\n'); |
| 1570 | + parts.push('```\n\n'); |
1579 | 1571 |
|
1580 | 1572 | parts.push('═'.repeat(80) + '\n'); |
1581 | 1573 | parts.push('## 🗂️ PROJECT STRUCTURE\n\n'); |
@@ -1759,20 +1751,10 @@ Your goal: deliver precise, production-grade patches with the smallest necessary |
1759 | 1751 | parts.push('\n'); |
1760 | 1752 |
|
1761 | 1753 | parts.push('## 🎯 SYSTEM PROMPT\n\n'); |
1762 | | - parts.push('> **Role**: Expert Software Engineer and Code Analyst\n\n'); |
1763 | | - parts.push('**📌 Key Instructions:**\n\n'); |
1764 | | - parts.push('1. **Complete Context**: This is the FULL and AUTHORITATIVE codebase\n'); |
1765 | | - parts.push('2. **Analyze Thoroughly**: Understand architecture, patterns, and dependencies\n'); |
1766 | | - parts.push('3. **Maintain Consistency**: Follow existing code style and conventions\n'); |
1767 | | - parts.push('4. **Reference Precisely**: Always cite specific file paths\n'); |
1768 | | - parts.push('5. **Think Holistically**: Consider the entire project ecosystem\n'); |
1769 | | - parts.push('6. **Respect Patterns**: Honor established design patterns and practices\n\n'); |
1770 | 1754 |
|
1771 | | - parts.push('**📝 Data Format:**\n\n'); |
1772 | | - parts.push('- Each file includes full path and language identifier\n'); |
1773 | | - parts.push('- Project structure provided for navigation\n'); |
1774 | | - parts.push('- All content is unmodified source code\n'); |
1775 | | - parts.push('- Syntax highlighting applied per language\n\n'); |
| 1755 | + parts.push('```\n'); |
| 1756 | + parts.push(CUSTOM_SYSTEM_PROMPT + '\n'); |
| 1757 | + parts.push('```\n\n'); |
1776 | 1758 |
|
1777 | 1759 | parts.push('═'.repeat(80) + '\n'); |
1778 | 1760 | parts.push('## 🗂️ PROJECT STRUCTURE\n\n'); |
|
0 commit comments