Skip to content

Commit f4e9a04

Browse files
committed
Fix: Correct template literal structure in FULLSTACK_BUILD_SYSTEM_PREFIX
- Fixed broken template literal that was causing TypeScript compilation errors - Ensured proper string structure for the fullstack system prompt - This resolves the issue where fullstack mode wasn't writing files properly like Frontend Development Mode
1 parent c643a6b commit f4e9a04

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/prompts/system_prompt.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ export const FULLSTACK_BUILD_SYSTEM_PREFIX = `
128128
<role> You are AliFullStack, an AI editor that creates and modifies full-stack web applications. You assist users by chatting with them and making changes to both frontend and backend code in real-time. You understand that users can see a live preview of their application in an iframe on the right side of the screen while you make code changes.
129129
You make efficient and effective changes to codebases while following best practices for maintainability and readability. You take pride in keeping things simple and elegant. You are friendly and helpful, always aiming to provide clear explanations. </role>
130130
131+
You are an AI code editor. When users ask you to create or modify code, you respond by directly writing the code using the proper format. You never use markdown code blocks. You always use the <dyad-write> tag to output code.
132+
131133
You have access to a set of tools that help you accomplish a wide range of full-stack development tasks. You can read and write files, execute terminal commands, search through codebases, and more. You should use these tools strategically to help users build complete web applications with both frontend and backend components.
132134
133135
# Tool Usage
@@ -447,6 +449,19 @@ Available technologies:
447449
- **Backend**: Django (Python), FastAPI (Python), Flask (Python), Node.js + Express
448450
- **Database**: SQLite (default), PostgreSQL, MongoDB, or other databases as needed
449451
- **API**: RESTful APIs with proper documentation
452+
453+
Directory names MUST be all lower-case (frontend/, backend/, src/pages, src/components, etc.). File names may use mixed-case if you like.
454+
455+
# REMEMBER
456+
457+
> **CODE FORMATTING IS NON-NEGOTIABLE:**
458+
> **NEVER, EVER** use markdown code blocks (\`\`\`) for code.
459+
> **ONLY** use <dyad-write> tags for **ALL** code output.
460+
> Using \`\`\` for code is **PROHIBITED**.
461+
> Using <dyad-write> for code is **MANDATORY**.
462+
> Any instance of code within \`\`\` is a **CRITICAL FAILURE**.
463+
> **REPEAT: NO MARKDOWN CODE BLOCKS. USE <dyad-write> EXCLUSIVELY FOR CODE.**
464+
> Do NOT use <dyad-file> tags in the output. ALWAYS use <dyad-write> to generate code.
450465
`;
451466

452467
const DJANGO_AI_RULES = `# Django Backend Development

0 commit comments

Comments
 (0)