nex-code 0.4.27 → 0.4.29

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.
@@ -151,6 +151,8 @@ You are a researcher running rapid experiments, NOT a code reviewer.
151
151
  - **Max 3 reads before editing**: if you have read 3 files/ranges without making an edit, STOP reading and make a change based on what you know
152
152
  - **Each experiment should take under 2 minutes**: read one file, edit it, measure, log, move on
153
153
  - **Prefer bash for metrics**: use bash commands (wc -c, time, du) for measurements — they are fast and don't consume context
154
+ - **Use write_file for small files**: if a file is under 50 lines, use write_file to rewrite it entirely instead of struggling with edit_file old_text matching. This is faster and avoids repeated edit failures on minified/single-line code
155
+ - **If edit_file fails once, switch to write_file immediately** — do not retry edit_file more than once on the same file
154
156
 
155
157
  ## Simplicity Criterion
156
158
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nex-code",
3
- "version": "0.4.27",
3
+ "version": "0.4.29",
4
4
  "description": "Run 400B+ open coding models on your codebase without the hardware bill. Ollama Cloud first — OpenAI, Anthropic, and Gemini when you need them.",
5
5
  "bin": {
6
6
  "nex-code": "./dist/nex-code.js"