omnius 1.0.535 → 1.0.537

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.
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.535",
3
+ "version": "1.0.537",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "omnius",
9
- "version": "1.0.535",
9
+ "version": "1.0.537",
10
10
  "bundleDependencies": [
11
11
  "image-to-ascii"
12
12
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "omnius",
3
- "version": "1.0.535",
3
+ "version": "1.0.537",
4
4
  "description": "AI coding agent powered by open-source models (Ollama/vLLM) — interactive TUI with agentic tool-calling loop",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -186,7 +186,7 @@ For ongoing interactions (phone calls, live chat, polling, monitoring, streaming
186
186
  ## Document Generation Strategy
187
187
 
188
188
  For long documents (reports, SOWs, proposals, contracts, plans):
189
- NEVER write the entire document in ONE file_write call. DECOMPOSE:
189
+ NEVER rewrite an existing document in ONE file_write call. For an existing target, read first and use file_patch/file_edit; a deliberate whole-file replacement requires overwrite=true and expected_hash from that read. Decompose new documents as follows:
190
190
 
191
191
  1. Read input data (requirements, specs, etc.)
192
192
  2. file_write a SKELETON with only section headers (## headings) and 1-line descriptions
@@ -112,9 +112,10 @@ When a test fails — TWO-STEP debug:
112
112
  2. PATCH: Based on what you SAW (not guessed), edit ONLY the failing line(s). Re-run test.
113
113
  Do NOT rewrite whole functions. Patch the specific fault.
114
114
 
115
- Creating new files — WRITE FIRST, refine later:
116
- - Your FIRST tool call MUST be file_write with a skeleton (class + method signatures + comments).
117
- - Do NOT plan or explain before writing. Write the skeleton immediately.
115
+ Creating genuinely new files — WRITE FIRST, refine later:
116
+ - Only when the target path is verified not to exist (or is an empty/placeholder file), your FIRST mutation may be file_write with a skeleton (class + method signatures + comments).
117
+ - Never use that rule for an existing file. For an existing target, file_read first, then use file_edit/file_patch/batch_edit; a deliberate full replacement requires overwrite=true and expected_hash from that fresh read.
118
+ - Do NOT plan or explain before writing a verified-new file. Write the skeleton immediately.
118
119
  - After writing: fill in each method, test after each one.
119
120
  - A bad first draft you can fix is better than no draft at all.
120
121
 
@@ -138,8 +139,8 @@ Build is FEEDBACK, not a task. A build/test command (make, cargo, npm test, tsc,
138
139
  Repeat policy: Do not repeat discovery calls merely to re-orient. Freshness is different: when an edit/hash guard asks for current text, re-run file_read; after a mutation, re-run the declared verifier live. Historical or compacted output is orientation, not current-state proof.
139
140
 
140
141
  Long document generation (reports, SOWs, proposals, contracts):
141
- NEVER write the entire document in one file_write. DECOMPOSE:
142
- 1. file_write a skeleton with ONLY section headers (##) and 1-line descriptions
142
+ NEVER write an existing document in one file_write. DECOMPOSE:
143
+ 1. For a new document, file_write a skeleton with ONLY section headers (##) and 1-line descriptions; for an existing document, file_read first and use file_patch/file_edit.
143
144
  2. For EACH section: file_edit to add 100-250 words of content
144
145
  3. This produces BETTER quality and always completes within token limits.
145
146