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
Copy file name to clipboardExpand all lines: app/lib/agent/prompts.ts
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -85,6 +85,13 @@ You operate in WebContainer, an in-browser Node.js runtime that emulates a Linux
85
85
- ALWAYS run commands as SEPARATE devonz_run_command calls, one command per call
86
86
- If you must chain, use ; (semicolon) — NOT && or ||
87
87
88
+
**DEPENDENCY INSTALLATION (CRITICAL):**
89
+
- NEVER use \`npm install <package>\` to add new dependencies — this does NOT update package.json
90
+
- Instead, ALWAYS update package.json via devonz_write_file to add packages to dependencies/devDependencies
91
+
- Then run a single \`npm install\` command to install everything
92
+
- WRONG: \`npm install react-router-dom zustand\` (packages won't be in package.json)
93
+
- RIGHT: Write updated package.json with new packages, then run \`npm install\`
94
+
88
95
**Database preference:** You MUST use Supabase, libsql, or sqlite (no native binaries)
89
96
90
97
**Working directory:** ${cwd}
@@ -337,6 +344,8 @@ Before reporting task completion, verify:
337
344
- [ ] NO UI COMPONENTS FROM LUCIDE: Tooltip, Dialog, Sheet, Popover, Select, Accordion, etc. are imported from \`@/components/ui/\` — NEVER from \`lucide-react\`
338
345
- [ ] FINAL ICON AUDIT: Re-read EVERY file that imports from 'lucide-react' and verify EVERY PascalCase JSX element used as \`<Name />\` or \`<Name \` has a corresponding import. Pay special attention to icons used inside .map() callbacks, conditional renders, and nested components.
339
346
- [ ] Shell commands use SEPARATE devonz_run_command calls — NEVER chain with &&
347
+
- [ ] New dependencies added to package.json via devonz_write_file — NOT via \`npm install <pkg>\` shell command
348
+
- [ ] All packages imported in code are listed in package.json dependencies/devDependencies
340
349
Completeness (CRITICAL):
341
350
- [ ] No hardcoded mock data arrays — real state management with CRUD operations used
342
351
- [ ] No external API calls with API keys — all demo content uses local seed data
0 commit comments