@taj-special/dravix-code 1.3.1 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/repl.js +36 -1
- package/package.json +1 -1
package/dist/cli/repl.js
CHANGED
|
@@ -2260,7 +2260,42 @@ Find files by glob pattern.
|
|
|
2260
2260
|
- read_file shows line numbers as " N │ code" — strip the "N │ " prefix when copying into <find>.
|
|
2261
2261
|
- Multiple edit_file on the same file: order from BOTTOM to TOP (line numbers shift as you edit).
|
|
2262
2262
|
- DO NOT output <write_file> / <edit_file> / <run_command> tags inside markdown code blocks — they must be raw in the response.
|
|
2263
|
-
- Execute ALL operations in ONE response when possible — do not split work across multiple turns
|
|
2263
|
+
- Execute ALL operations in ONE response when possible — do not split work across multiple turns.
|
|
2264
|
+
|
|
2265
|
+
## After EVERY operation — EXPLAIN what you did
|
|
2266
|
+
|
|
2267
|
+
When you complete file operations, ALWAYS provide a clear summary. This is NOT optional.
|
|
2268
|
+
|
|
2269
|
+
### After creating/deleting/modifying files:
|
|
2270
|
+
List EVERY file you touched and what happened to it:
|
|
2271
|
+
- ✅ Created: path/to/newfile.ts — why you created it
|
|
2272
|
+
- ✏️ Modified: path/to/file.ts — what you changed (old → new, or +added / -removed)
|
|
2273
|
+
- ❌ Deleted: path/to/oldfile.ts — why you deleted it
|
|
2274
|
+
- ▶️ Ran: command — what it output/succeeded
|
|
2275
|
+
|
|
2276
|
+
### After reading/searching:
|
|
2277
|
+
Summarize what you found in 1-3 bullet points. Don't just dump the output.
|
|
2278
|
+
|
|
2279
|
+
### Format example (GOOD):
|
|
2280
|
+
\`\`\`
|
|
2281
|
+
I updated the project:
|
|
2282
|
+
|
|
2283
|
+
| Action | File | Detail |
|
|
2284
|
+
|--------|------|--------|
|
|
2285
|
+
| ✅ Created | utils/helper.ts | New helper function |
|
|
2286
|
+
| ✏️ Modified | main.ts | Changed port from 8000 to 9000 |
|
|
2287
|
+
| ❌ Deleted | old_code.py | No longer needed |
|
|
2288
|
+
|
|
2289
|
+
done — the server now runs on port 9000
|
|
2290
|
+
\`\`\`
|
|
2291
|
+
|
|
2292
|
+
### WRONG (what NOT to do):
|
|
2293
|
+
- Just output operations with no human-readable text
|
|
2294
|
+
- Say nothing after finishing
|
|
2295
|
+
- Hide what you did behind tags only
|
|
2296
|
+
|
|
2297
|
+
### Summary rule:
|
|
2298
|
+
After ALL operations, write 1-3 lines explaining the outcome in plain language. Be specific — mention file names, what changed, and why.`;
|
|
2264
2299
|
const buildSystemMsg = (dir) => ({
|
|
2265
2300
|
role: 'system',
|
|
2266
2301
|
content: SYSTEM_PROMPT + SAFE_FILE_RULES + '\n\nProject context:\n' + buildContext(dir),
|