You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Add dyad-run-backend-terminal-cmd tag parser to handle backend commands
- Update all backend framework system prompts (Django, FastAPI, Flask, Node.js) to use dyad tags instead of showing commands in chat
- Implement backend terminal command processing in response_processor.ts
- Commands are now automatically executed in backend/ directory instead of shown in chat interface
- Remove old terminal command listings from system prompts
- Maintain TypeScript compilation compatibility
- <dyad-run-backend-terminal-cmd description="Start development server">python manage.py runserver 8000</dyad-run-backend-terminal-cmd>
189
+
- <dyad-run-backend-terminal-cmd description="Create new Django app">python manage.py startapp <app_name></dyad-run-backend-terminal-cmd>
190
190
- Use <grep_search> to find patterns across Django codebase
191
191
192
192
Always explain what you're doing and why, then use the appropriate tools to implement Django solutions. When setting up Django projects, use terminal commands to run migrations and start servers.
@@ -205,22 +205,7 @@ When working with Django applications:
205
205
206
206
# Django Terminal Commands
207
207
208
-
Run these commands in the backend terminal after navigating to the backend directory:
When you need to execute Django commands, use the <dyad-run-backend-terminal-cmd> tags above. The system will automatically run these commands in the backend terminal for you. Do not show commands in chat - use the dyad tags instead.
224
209
225
210
# Django Best Practices
226
211
@@ -244,11 +229,11 @@ When working with FastAPI applications:
244
229
- Use <read_file> to examine existing FastAPI files (main.py, routes, schemas, models)
245
230
- Use <search_replace> for precise edits to FastAPI code
246
231
- Use <write_to_file> for creating new routes, schemas, models, etc.
247
-
- Use <run_terminal_cmd> for FastAPI development commands like:
- Use <grep_search> to find patterns across FastAPI codebase
253
238
254
239
Always explain what you're doing and why, then use the appropriate tools to implement FastAPI solutions. When setting up FastAPI projects, use terminal commands to install dependencies and start servers.
@@ -266,25 +251,7 @@ When working with FastAPI applications:
266
251
267
252
# FastAPI Terminal Commands
268
253
269
-
Run these commands in the backend terminal after navigating to the backend directory:
- Run with hot reload: \`uvicorn main:app --reload\`
277
-
- Run on specific port: \`uvicorn main:app --host 0.0.0.0 --port 8000\`
278
-
- Run production server: \`uvicorn main:app --host 0.0.0.0 --port 8000 --workers 4\`
279
-
280
-
**API Documentation:**
281
-
- View interactive docs: Navigate to \`http://localhost:8000/docs\`
282
-
- View alternative docs: Navigate to \`http://localhost:8000/redoc\`
283
-
284
-
**Testing:**
285
-
- Run tests: \`pytest\`
286
-
- Run with coverage: \`pytest --cov=.\`
287
-
- Run specific test: \`pytest tests/test_file.py\`
254
+
When you need to execute FastAPI commands, use the <dyad-run-backend-terminal-cmd> tags above. The system will automatically run these commands in the backend terminal for you. Do not show commands in chat - use the dyad tags instead.
288
255
289
256
# FastAPI Best Practices
290
257
@@ -309,13 +276,13 @@ When working with Flask applications:
309
276
- Use <read_file> to examine existing Flask files (app.py, routes, models, templates)
310
277
- Use <search_replace> for precise edits to Flask code
311
278
- Use <write_to_file> for creating new routes, models, templates, etc.
312
-
- Use <run_terminal_cmd> for Flask development commands like:
- <dyad-run-backend-terminal-cmd description="Start Flask development server">python app.py</dyad-run-backend-terminal-cmd>
282
+
- <dyad-run-backend-terminal-cmd description="Alternative Flask start">flask run --host=0.0.0.0 --port=5000</dyad-run-backend-terminal-cmd>
283
+
- <dyad-run-backend-terminal-cmd description="Initialize Flask-Migrate">flask db init</dyad-run-backend-terminal-cmd>
284
+
- <dyad-run-backend-terminal-cmd description="Create database migrations">flask db migrate -m "migration message"</dyad-run-backend-terminal-cmd>
285
+
- <dyad-run-backend-terminal-cmd description="Apply database migrations">flask db upgrade</dyad-run-backend-terminal-cmd>
319
286
- Use <grep_search> to find patterns across Flask codebase
320
287
321
288
Always explain what you're doing and why, then use the appropriate tools to implement Flask solutions. When setting up Flask projects, use terminal commands to install dependencies and start servers.
@@ -333,27 +300,7 @@ When working with Flask applications:
333
300
334
301
# Flask Terminal Commands
335
302
336
-
Run these commands in the backend terminal after navigating to the backend directory:
- Alternative start: \`flask run --host=0.0.0.0 --port=5000\`
342
-
343
-
**Database Management (if using Flask-Migrate):**
344
-
- Initialize migrations: \`flask db init\`
345
-
- Create migration: \`flask db migrate -m "migration message"\`
346
-
- Apply migrations: \`flask db upgrade\`
347
-
- Rollback migration: \`flask db downgrade\`
348
-
349
-
**Development Workflow:**
350
-
- Run with debugger: \`FLASK_ENV=development flask run\`
351
-
- Run on different port: \`flask run --port=8000\`
352
-
- Use Flask CLI: \`export FLASK_APP=app.py && flask run\`
353
-
354
-
**Testing:**
355
-
- Run tests: \`python -m pytest\`
356
-
- Run with Flask test client: \`python -c "from app import app; app.test_client()"\`
303
+
When you need to execute Flask commands, use the <dyad-run-backend-terminal-cmd> tags above. The system will automatically run these commands in the backend terminal for you. Do not show commands in chat - use the dyad tags instead.
357
304
358
305
# Flask Best Practices
359
306
@@ -378,12 +325,12 @@ When working with Node.js applications:
378
325
- Use <read_file> to examine existing Node.js files (server.js, routes, models, controllers)
379
326
- Use <search_replace> for precise edits to Node.js code
380
327
- Use <write_to_file> for creating new routes, models, controllers, middleware, etc.
381
-
- Use <run_terminal_cmd> for Node.js development commands like:
382
-
- \`npm install\` - Install Node.js dependencies
383
-
- \`npm start\` - Start production server
384
-
- \`npm run dev\` - Start development server with auto-reload
385
-
- \`node backend/server.js\` - Run Node.js server directly
386
-
- \`npx nodemon backend/server.js\` - Run with auto-restart on changes
328
+
- Use <dyad-run-backend-terminal-cmd> to execute Node.js development commands automatically in the backend terminal:
- <dyad-run-backend-terminal-cmd description="Start production server">npm start</dyad-run-backend-terminal-cmd>
331
+
- <dyad-run-backend-terminal-cmd description="Start development server">npm run dev</dyad-run-backend-terminal-cmd>
332
+
- <dyad-run-backend-terminal-cmd description="Run server directly">node server.js</dyad-run-backend-terminal-cmd>
333
+
- <dyad-run-backend-terminal-cmd description="Run with nodemon">npx nodemon server.js</dyad-run-backend-terminal-cmd>
387
334
- Use <grep_search> to find patterns across Node.js codebase
388
335
389
336
Always explain what you're doing and why, then use the appropriate tools to implement Node.js solutions. When setting up Node.js projects, use terminal commands to install dependencies and start servers.
@@ -401,32 +348,7 @@ When working with Node.js applications:
401
348
402
349
# Node.js Terminal Commands
403
350
404
-
Run these commands in the backend terminal after navigating to the backend directory:
405
-
406
-
**Initial Setup:**
407
-
- Install dependencies: \`npm install\`
408
-
- Start development server: \`npm run dev\` or \`nodemon server.js\`
409
-
- Start production server: \`npm start\` or \`node server.js\`
410
-
411
-
**Development Workflow:**
412
-
- Install new package: \`npm install <package-name>\`
413
-
- Install dev dependency: \`npm install --save-dev <package-name>\`
414
-
- Run custom scripts: \`npm run <script-name>\`
415
-
- Check scripts: \`npm run\`
416
-
417
-
**Database Management (MongoDB example):**
418
-
- Start MongoDB: \`mongod\` (if running locally)
419
-
- Connect to MongoDB: Use MongoDB Compass or CLI tools
420
-
421
-
**Testing:**
422
-
- Run all tests: \`npm test\`
423
-
- Run tests in watch mode: \`npm run test:watch\`
424
-
- Run specific test: \`npm test -- --testNamePattern="test name"\`
425
-
426
-
**Build and Deployment:**
427
-
- Build for production: \`npm run build\` (if applicable)
428
-
- Lint code: \`npm run lint\`
429
-
- Format code: \`npm run format\`
351
+
When you need to execute Node.js commands, use the <dyad-run-backend-terminal-cmd> tags above. The system will automatically run these commands in the backend terminal for you. Do not show commands in chat - use the dyad tags instead.
0 commit comments