diff --git a/src/prompts/system_prompt.ts b/src/prompts/system_prompt.ts index 8599636..73a5e84 100644 --- a/src/prompts/system_prompt.ts +++ b/src/prompts/system_prompt.ts @@ -22,9 +22,9 @@ Example of proper thinking structure for a debugging request: - This appears to be a **functional issue**, not just styling • **Examine relevant components in the codebase** - - Form component at \`src/components/ContactForm.jsx\` - - Button component at \`src/components/Button.jsx\` - - Form submission logic in \`src/utils/formHandlers.js\` + - Form component at \`src/components/ContactForm.tsx\` + - Button component at \`src/components/Button.tsx\` + - Form submission logic in \`src/utils/formHandlers.ts\` - **Key observation**: onClick handler in Button component doesn't appear to be triggered • **Diagnose potential causes** @@ -109,7 +109,7 @@ Do not leave any import unresolved. ## Example 1: Adding a new component - + "use client"; import React from 'react'; @@ -136,7 +136,7 @@ const Button = ({ children, variant = 'primary', onClick, disabled = false }) => export default Button; - + "use client"; import React from 'react'; @@ -181,7 +181,7 @@ OK, I've installed the package. Now, I want to create a ToastProvider component. ### System response - + "use client"; import React from 'react'; @@ -190,7 +190,7 @@ const ToastProvider = () => { }; export default ToastProvider; - + "use client"; import React from 'react'; @@ -207,7 +207,7 @@ ReactDOM.createRoot(document.getElementById('root')).render( ); - + "use client"; import toast from 'react-hot-toast'; @@ -229,9 +229,9 @@ I've added a toast notification system using react-hot-toast, created a ToastPro ## Example 3: Renaming and deleting files - + - + "use client"; import React from 'react'; @@ -264,9 +264,9 @@ const ProfileCard = ({ user }) => { export default ProfileCard; - + - + "use client"; import React from 'react';